Package org.eclipse.ui.internal
Class ShowViewMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.ShowViewMenu
- All Implemented Interfaces:
- IContributionItem
A 
ShowViewMenu is used to populate a menu manager with Show View
 actions. The visible views are determined by user preference from the
 Perspective Customize dialog.- 
Constructor SummaryConstructorsConstructorDescriptionShowViewMenu(IWorkbenchWindow window, String id) Creates a Show View menu.ShowViewMenu(IWorkbenchWindow window, String id, boolean makeFast) Creates a Show View menu.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()The default implementation of thisIContributionItemmethod does nothing.voidThe default implementation of thisIContributionItemmethod does nothing.booleanOverridden to always return true and force dynamic menu building.protected voidremoveAction(String viewId) Methods inherited from class org.eclipse.jface.action.ContributionItemfill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
- 
Constructor Details- 
ShowViewMenuCreates a Show View menu.- Parameters:
- window- the window containing the menu
- id- the id
 
- 
ShowViewMenuCreates a Show View menu.- Parameters:
- window- the window containing the menu
- id- the id
- makeFast- use the fact view variant of the command
 
 
- 
- 
Method Details- 
isDynamicpublic boolean isDynamic()Overridden to always return true and force dynamic menu building.- Specified by:
- isDynamicin interface- IContributionItem
- Overrides:
- isDynamicin class- ContributionItem
- Returns:
- trueif this item is dynamic, and- falsefor normal items
 
- 
fillDescription copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
- fillin interface- IContributionItem
- Overrides:
- fillin class- ContributionItem
- Parameters:
- menu- the parent menu
- index- the index where the controls are inserted, or- -1to insert at the end
 
- 
removeAction
- 
disposepublic void dispose()Description copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
- disposein interface- IContributionItem
- Overrides:
- disposein class- ContributionItem
 
 
-