Package org.eclipse.ui.internal
Class WorkingSetMenuContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.ui.internal.WorkingSetMenuContributionItem
- All Implemented Interfaces:
IContributionItem
Menu contribution item which shows a working set.
- Since:
- 2.1
-
Constructor Summary
ConstructorsConstructorDescriptionWorkingSetMenuContributionItem(int id, WorkingSetFilterActionGroup actionGroup, IWorkingSet workingSet) Creates a new instance of the receiver. -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()The default implementation of thisIContributionItemmethod does nothing.voidAdds a menu item for the working set.static StringgetId(int id) Returns the id of this menu contribution itembooleanOverridden to always return true and force dynamic menu building.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
-
WorkingSetMenuContributionItem
public WorkingSetMenuContributionItem(int id, WorkingSetFilterActionGroup actionGroup, IWorkingSet workingSet) Creates a new instance of the receiver.- Parameters:
id- sequential id of the new instanceactionGroup- the action group this contribution item is created in
-
-
Method Details
-
getId
Returns the id of this menu contribution item- Parameters:
id- numerical id- Returns:
- String string id
-
fill
Adds a menu item for the working set. Overrides method from ContributionItem.- 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- See Also:
-
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
-
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
-