Search in sources :

Example 1 with CustomizePerspectiveDialog

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;
}
Also used : MPerspective(org.eclipse.e4.ui.model.application.ui.advanced.MPerspective) CustomizePerspectiveDialog(org.eclipse.ui.internal.dialogs.cpd.CustomizePerspectiveDialog)

Aggregations

MPerspective (org.eclipse.e4.ui.model.application.ui.advanced.MPerspective)1 CustomizePerspectiveDialog (org.eclipse.ui.internal.dialogs.cpd.CustomizePerspectiveDialog)1