Package org.eclipse.ui.internal
Class ReopenEditorMenu
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.ReopenEditorMenu
- All Implemented Interfaces:
- IContributionItem
A dynamic menu item which supports to switch to other Windows.
- 
Constructor SummaryConstructorsConstructorDescriptionReopenEditorMenu(IWorkbenchWindow window, String id, boolean showSeparator) Create a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringReturn a string suitable for a file MRU list.voiddispose()The default implementation of thisIContributionItemmethod does nothing.voidFills the given menu with menu items for all windows.booleanOverridden to always return true and force dynamic menu building.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- 
ReopenEditorMenuCreate a new instance.- Parameters:
- window- the window on which the menu is to be created
- id- menu's id
- showSeparator- whether or not to show a separator
 
 
- 
- 
Method Details- 
calcTextReturn a string suitable for a file MRU list. This should not be called outside the framework.- Parameters:
- index- the index in the MRU list
- name- the file name
- toolTip- potentially the path
- rtl- should it be right-to-left
- Returns:
- a string suitable for an MRU file menu
 
- 
fillFills the given menu with menu items for all 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
 
- 
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
 
 
-