Package org.eclipse.ui.internal
Class SwitchToWindowMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.SwitchToWindowMenu
- All Implemented Interfaces:
- IContributionItem
A dynamic menu item to switch to other opened workbench windows.
- 
Constructor SummaryConstructorsConstructorDescriptionSwitchToWindowMenu(IWorkbenchWindow window, String id, boolean showSeparator) Creates a new instance of this class.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()The default implementation of thisIContributionItemmethod does nothing.voidFills the given menu with menu items for all opened workbench windows.booleanisDirty()Overridden to always return true and force dynamic menu building.booleanOverridden to always return true and force dynamic menu building.Methods 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- 
SwitchToWindowMenuCreates a new instance of this class.- Parameters:
- window- the workbench window this action applies to
- showSeparator- whether to add a separator in the menu
 
 
- 
- 
Method Details- 
fillFills the given menu with menu items for all opened workbench windows.- 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
 
- 
isDirtypublic boolean isDirty()Overridden to always return true and force dynamic menu building.- Specified by:
- isDirtyin interface- IContributionItem
- Overrides:
- isDirtyin class- ContributionItem
- Returns:
- trueif this item is dirty
 
- 
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
 
- 
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
 
 
-