Package org.eclipse.ui.internal
Class ChangeToPerspectiveMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.actions.PerspectiveMenu
org.eclipse.ui.internal.ChangeToPerspectiveMenu
- All Implemented Interfaces:
IContributionItem
Change the perspective of the active page in the window to the selected one.
-
Field Summary
Fields inherited from class org.eclipse.ui.actions.PerspectiveMenu
SHOW_PERSP_ID -
Constructor Summary
ConstructorsConstructorDescriptionChangeToPerspectiveMenu(IWorkbenchWindow window, String id) Constructor for ChangeToPerspectiveMenu. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrun(IPerspectiveDescriptor desc) Runs an action for a particular perspective.Methods inherited from class org.eclipse.ui.actions.PerspectiveMenu
dispose, fill, getPerspectiveItems, getShowActive, getWindow, isDirty, isDynamic, run, showActiveMethods inherited from class org.eclipse.jface.action.ContributionItem
fill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Constructor Details
-
ChangeToPerspectiveMenu
Constructor for ChangeToPerspectiveMenu.- Parameters:
window- the workbench window this action applies toid- the menu id
-
-
Method Details
-
run
Description copied from class:PerspectiveMenuRuns an action for a particular perspective. The behavior of the action is defined by the subclass.- Specified by:
runin classPerspectiveMenu- Parameters:
desc- the selected perspective
-