private void showAccessRestrictionDialog(CPListElement selElement) { AccessRulesDialog dialog= new AccessRulesDialog(getShell(), selElement, fCurrJProject, fPageContainer != null); int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); selElement.setAttribute(CPListElement.COMBINE_ACCESSRULES, Boolean.valueOf(dialog.doCombineAccessRules())); fProjectsList.refresh(); fClassPathList.dialogFieldChanged(); // validate if (res == AccessRulesDialog.SWITCH_PAGE) { dialog.performPageSwitch(fPageContainer); } } }
private void showAccessRestrictionDialog(CPListElement selElement) { AccessRulesDialog dialog= new AccessRulesDialog(getShell(), selElement, fCurrJProject, fPageContainer != null); int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); selElement.setAttribute(CPListElement.COMBINE_ACCESSRULES, Boolean.valueOf(dialog.doCombineAccessRules())); fProjectsList.refresh(); fClassPathList.dialogFieldChanged(); // validate if (res == AccessRulesDialog.SWITCH_PAGE) { dialog.performPageSwitch(fPageContainer); } } }
private void showAccessRestrictionDialog(CPListElement selElement) { AccessRulesDialog dialog= new AccessRulesDialog(getShell(), selElement, fCurrJProject, fPageContainer != null); int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); selElement.setAttribute(CPListElement.COMBINE_ACCESSRULES, new Boolean(dialog.doCombineAccessRules())); fProjectsList.refresh(); fClassPathList.dialogFieldChanged(); // validate if (res == AccessRulesDialog.SWITCH_PAGE) { dialog.performPageSwitch(fPageContainer); } } }
private void editAttributeEntry(CPListElementAttribute elem) { String key= elem.getKey(); CPListElement selElement= elem.getParent(); if (key.equals(CPListElement.SOURCEATTACHMENT)) { IClasspathEntry result= BuildPathDialogAccess.configureSourceAttachment(getShell(), selElement.getClasspathEntry()); if (result != null) { selElement.setAttribute(CPListElement.SOURCEATTACHMENT, result.getSourceAttachmentPath()); fLibraryList.refresh(elem); fLibraryList.update(selElement); } } else if (key.equals(CPListElement.ACCESSRULES)) { AccessRulesDialog dialog= new AccessRulesDialog(getShell(), selElement, null, false); if (dialog.open() == Window.OK) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); fLibraryList.refresh(elem); fLibraryList.expandElement(elem, 2); } } else if (!elem.isBuiltIn()) { ClasspathAttributeConfiguration config= fAttributeDescriptors.get(key); if (config != null) { IClasspathAttribute result= config.performEdit(getShell(), elem.getClasspathAttributeAccess()); if (result != null) { elem.setValue(result.getValue()); fLibraryList.refresh(elem); } } } }
if (dialog.open() == Window.OK) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); fLibraryList.refresh(parentContainer);
if (dialog.open() == Window.OK) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules()); fLibraryList.refresh(parentContainer);
int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules());
int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules());
int res= dialog.open(); if (res == Window.OK || res == AccessRulesDialog.SWITCH_PAGE) { selElement.setAttribute(CPListElement.ACCESSRULES, dialog.getAccessRules());