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 Summary
ConstructorsConstructorDescriptionShowViewMenu(IWorkbenchWindow window, String id) Creates a Show View menu.ShowViewMenu(IWorkbenchWindow window, String id, boolean makeFast) Creates a Show View menu. -
Method Summary
Modifier 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.ContributionItem
fill, fill, fill, getId, getParent, isDirty, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setParent, setVisible, toString, update, update
-
Constructor Details
-
ShowViewMenu
Creates a Show View menu.- Parameters:
window- the window containing the menuid- the id
-
ShowViewMenu
Creates a Show View menu.- Parameters:
window- the window containing the menuid- the idmakeFast- use the fact view variant of the command
-
-
Method Details
-
isDynamic
public boolean isDynamic()Overridden to always return true and force dynamic menu building.- Specified by:
isDynamicin interfaceIContributionItem- Overrides:
isDynamicin classContributionItem- Returns:
trueif this item is dynamic, andfalsefor normal items
-
fill
Description copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
fillin interfaceIContributionItem- Overrides:
fillin classContributionItem- Parameters:
menu- the parent menuindex- the index where the controls are inserted, or-1to insert at the end
-
removeAction
-
dispose
public void dispose()Description copied from class:ContributionItemThe default implementation of thisIContributionItemmethod does nothing. Subclasses may override.- Specified by:
disposein interfaceIContributionItem- Overrides:
disposein classContributionItem
-