use of org.eclipse.ui.internal.dialogs.cpd.CustomizePerspectiveDialog in project eclipse.platform.ui by eclipse-platform.
the class WorkbenchPage method editActionSets.
public boolean editActionSets() {
Perspective persp = getActivePerspective();
if (persp == null) {
return false;
}
// Create list dialog.
CustomizePerspectiveDialog dlg = legacyWindow.createCustomizePerspectiveDialog(persp, window.getContext());
// Open.
boolean ret = (dlg.open() == Window.OK);
if (ret) {
legacyWindow.updateActionSets();
legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_RESET);
legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_RESET_COMPLETE);
}
return ret;
}
Aggregations