Class HandledContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem
org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem
- All Implemented Interfaces:
IContributionItem
-
Field Summary
Fields inherited from class org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem
DISABLED_URI, DISPOSABLE, FORCE_TEXT, helpService, ICON_URI, localResourceManager, logger, menuItemListener, menuListener, widget
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canExecuteItem
(Event trigger) void
dispose()
The default implementation of thisIContributionItem
method does nothing.protected void
executeItem
(Event trigger) getModel()
protected void
protected void
handleWidgetDispose
(Event event) protected void
This method is intended to perform actions additionally to the common actions inAbstractContributionItem.fill(Menu, int)
protected void
This method is intended to perform actions additionally to the common actions inAbstractContributionItem.fill(ToolBar, int)
void
setModel
(MHandledItem item) This method seems to be necessary for calls via reflection when called with MHandledItem parameter.void
protected void
protected void
Methods inherited from class org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem
disposeOldImages, dropdownEvent, fill, fill, getContext, getContextForParent, getImage, getItemListener, getMenu, getUpdater, getWidget, handleWidgetSelection, setParent, update, update, updateIcons, updateItemEnablement, updateVisible
Methods inherited from class org.eclipse.jface.action.ContributionItem
fill, fill, getId, getParent, isDirty, isDynamic, isEnabled, isGroupMarker, isSeparator, isVisible, saveWidgetState, setId, setVisible, toString
-
Constructor Details
-
HandledContributionItem
public HandledContributionItem()
-
-
Method Details
-
postMenuFill
protected void postMenuFill()Description copied from class:AbstractContributionItem
This method is intended to perform actions additionally to the common actions inAbstractContributionItem.fill(Menu, int)
- Overrides:
postMenuFill
in classAbstractContributionItem
-
postToolbarFill
protected void postToolbarFill()Description copied from class:AbstractContributionItem
This method is intended to perform actions additionally to the common actions inAbstractContributionItem.fill(ToolBar, int)
- Overrides:
postToolbarFill
in classAbstractContributionItem
-
updateMenuItem
protected void updateMenuItem()- Specified by:
updateMenuItem
in classAbstractContributionItem
-
updateToolItem
protected void updateToolItem()- Specified by:
updateToolItem
in classAbstractContributionItem
-
handleWidgetDispose
- Specified by:
handleWidgetDispose
in classAbstractContributionItem
-
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
-
handleHelpRequest
protected void handleHelpRequest()- Overrides:
handleHelpRequest
in classAbstractContributionItem
-
executeItem
- Specified by:
executeItem
in classAbstractContributionItem
-
canExecuteItem
- Specified by:
canExecuteItem
in classAbstractContributionItem
- Returns:
- if the item can be executed
-
getModel
- Overrides:
getModel
in classAbstractContributionItem
- Returns:
- the model