1 11 package org.eclipse.ui.internal; 12 13 import org.eclipse.ui.IPerspectiveDescriptor; 14 import org.eclipse.ui.IWorkbenchPage; 15 import org.eclipse.ui.IWorkbenchWindow; 16 import org.eclipse.ui.PlatformUI; 17 18 21 public class EditActionSetsAction extends PerspectiveAction { 22 23 26 public EditActionSetsAction() { 27 this(PlatformUI.getWorkbench().getActiveWorkbenchWindow()); 28 } 29 30 35 public EditActionSetsAction(IWorkbenchWindow window) { 36 super(window); 37 setText(WorkbenchMessages.EditActionSetsAction_text); 38 setActionDefinitionId("org.eclipse.ui.window.customizePerspective"); setToolTipText(WorkbenchMessages.EditActionSetsAction_toolTip); 41 window.getWorkbench().getHelpSystem().setHelp(this, 42 IWorkbenchHelpContextIds.EDIT_ACTION_SETS_ACTION); 43 } 44 45 48 protected void run(IWorkbenchPage page, IPerspectiveDescriptor persp) { 49 ((WorkbenchPage) page).editActionSets(); 50 } 51 52 } 53 | Popular Tags |