Package org.eclipse.ui.internal
Class PluginActionContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.jface.action.ActionContributionItem
org.eclipse.ui.internal.PluginActionContributionItem
- All Implemented Interfaces:
- IContributionItem,- IActivityManagerListener,- IIdentifierListener
- Direct Known Subclasses:
- PluginActionCoolBarContributionItem
public class PluginActionContributionItem
extends ActionContributionItem
implements IIdentifierListener, IActivityManagerListener
Contribution item for actions provided by plugins via workbench action
 extension points.
- 
Field SummaryFields inherited from class org.eclipse.jface.action.ActionContributionItemMODE_FORCE_TEXT
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new contribution item from the given action.
- 
Method SummaryModifier and TypeMethodDescriptionvoidactivityManagerChanged(ActivityManagerEvent activityManagerEvent) Notifies that one or more properties of an instance ofIActivityManagerhave changed.voiddispose()The default implementation of thisIContributionItemmethod notifies the delegate if loaded and implements theIActionDelegate2interface.voididentifierChanged(IdentifierEvent identifierEvent) Notifies that one or more properties of an instance ofIIdentifierhave changed.protected voidMark the parent dirty if we have a parent.booleanTheActionContributionItemimplementation of thisContributionItemmethod extends the super implementation by also checking whether the command corresponding to this action is active.voidsetParent(IContributionManager parent) Sets the parent manager of this itemMethods inherited from class org.eclipse.jface.action.ActionContributionItemequals, fill, fill, fill, getAction, getMode, getUseColorIconsInToolbars, getWidget, hashCode, isDynamic, isEnabled, isEnabledAllowed, setMode, setUseColorIconsInToolbars, shortenText, update, updateMethods inherited from class org.eclipse.jface.action.ContributionItemfill, getId, getParent, isDirty, isGroupMarker, isSeparator, saveWidgetState, setId, setVisible, toString
- 
Constructor Details- 
PluginActionContributionItemCreates a new contribution item from the given action. The id of the action is used as the id of the item.- Parameters:
- action- the action
 
 
- 
- 
Method Details- 
setParentDescription copied from interface:IContributionItemSets the parent manager of this item- Specified by:
- setParentin interface- IContributionItem
- Overrides:
- setParentin class- ContributionItem
- Parameters:
- parent- the parent contribution manager
 
- 
disposepublic void dispose()The default implementation of thisIContributionItemmethod notifies the delegate if loaded and implements theIActionDelegate2interface.- Specified by:
- disposein interface- IContributionItem
- Overrides:
- disposein class- ActionContributionItem
 
- 
isVisiblepublic boolean isVisible()Description copied from class:ActionContributionItemTheActionContributionItemimplementation of thisContributionItemmethod extends the super implementation by also checking whether the command corresponding to this action is active.- Specified by:
- isVisiblein interface- IContributionItem
- Overrides:
- isVisiblein class- ActionContributionItem
- Returns:
- trueif this item is visible, and- falseotherwise
 
- 
identifierChangedDescription copied from interface:IIdentifierListenerNotifies that one or more properties of an instance ofIIdentifierhave changed. Specific details are described in theIdentifierEvent.- Specified by:
- identifierChangedin interface- IIdentifierListener
- Parameters:
- identifierEvent- the identifier event. Guaranteed not to be- null.
 
- 
invalidateParentprotected void invalidateParent()Mark the parent dirty if we have a parent.- Since:
- 3.1
 
- 
activityManagerChangedDescription copied from interface:IActivityManagerListenerNotifies that one or more properties of an instance ofIActivityManagerhave changed. Specific details are described in theActivityManagerEvent.- Specified by:
- activityManagerChangedin interface- IActivityManagerListener
- Parameters:
- activityManagerEvent- the activity manager event. Guaranteed not to be- null.
 
- 
getSelection
 
-