Class OpenNewPageMenu
- All Implemented Interfaces:
- IContributionItem
 An OpenNewPageMenu is used to populate a menu with "Open Page"
 actions. One item is added for each shortcut perspective, as defined by the
 product ini. If the user selects one of these items a new page is created in
 the workbench with the given perspective.
 
The visible perspectives within the menu may also be updated dynamically to reflect user preference.
 The input for the page is determined by the value of pageInput.
 The input should be passed into the constructor of this class or set using
 the setPageInput method.
 
This class may be instantiated; it is not intended to be subclassed.
- Restriction:
- This class is not intended to be subclassed by clients.
- 
Field SummaryFields inherited from class org.eclipse.ui.actions.PerspectiveMenuSHOW_PERSP_ID
- 
Constructor SummaryConstructorsConstructorDescriptionOpenNewPageMenu(IWorkbenchWindow window) Deprecated.Constructs a new instance ofOpenNewPageMenu.OpenNewPageMenu(IWorkbenchWindow window, IAdaptable input) Deprecated.Constructs a new instance ofOpenNewPageMenu.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidrun(IPerspectiveDescriptor desc) Deprecated.Runs an action for a particular perspective.voidsetPageInput(IAdaptable input) Deprecated.Sets the page input.Methods inherited from class org.eclipse.ui.actions.PerspectiveMenudispose, fill, getPerspectiveItems, getShowActive, getWindow, isDirty, isDynamic, run, showActiveMethods inherited from class org.eclipse.jface.action.ContributionItemfill, fill, fill, getId, getParent, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
- 
Constructor Details- 
OpenNewPageMenuDeprecated.Constructs a new instance ofOpenNewPageMenu.If this method is used be sure to set the page input by invoking setPageInput. The page input is required when the user selects an item in the menu. At that point the menu will attempt to open a new page with the selected perspective and page input. If there is no page input an error dialog will be opened.- Parameters:
- window- the window where a new page is created if an item within the menu is selected
 
- 
OpenNewPageMenuDeprecated.Constructs a new instance ofOpenNewPageMenu.- Parameters:
- window- the window where a new page is created if an item within the menu is selected
- input- the page input
 
 
- 
- 
Method Details- 
runDeprecated.Description copied from class:PerspectiveMenuRuns an action for a particular perspective. The behavior of the action is defined by the subclass.- Specified by:
- runin class- PerspectiveMenu
- Parameters:
- desc- the selected perspective
 
- 
setPageInputDeprecated.Sets the page input.- Parameters:
- input- the page input
 
 
-