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
ConstructorDescriptionShowViewMenu
(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 TypeMethodDescriptionvoid
dispose()
The default implementation of thisIContributionItem
method does nothing.void
The default implementation of thisIContributionItem
method does nothing.boolean
Overridden to always return true and force dynamic menu building.protected void
removeAction
(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:
isDynamic
in interfaceIContributionItem
- Overrides:
isDynamic
in classContributionItem
- Returns:
true
if this item is dynamic, andfalse
for normal items
-
fill
Description copied from class:ContributionItem
The default implementation of thisIContributionItem
method does nothing. Subclasses may override.- Specified by:
fill
in interfaceIContributionItem
- Overrides:
fill
in classContributionItem
- Parameters:
menu
- the parent menuindex
- the index where the controls are inserted, or-1
to insert at the end
-
removeAction
-
dispose
public void dispose()Description copied from class:ContributionItem
The default implementation of thisIContributionItem
method does nothing. Subclasses may override.- Specified by:
dispose
in interfaceIContributionItem
- Overrides:
dispose
in classContributionItem
-