Class DirectContributionItem
java.lang.Object
org.eclipse.jface.action.ContributionItem
org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem
org.eclipse.e4.ui.workbench.renderers.swt.DirectContributionItem
- 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) protected void
handleWidgetDispose
(Event event) 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, getModel, getUpdater, getWidget, handleHelpRequest, handleWidgetSelection, postMenuFill, postToolbarFill, setModel, 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
-
DirectContributionItem
public DirectContributionItem()
-
-
Method Details
-
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
-
executeItem
- Specified by:
executeItem
in classAbstractContributionItem
-
canExecuteItem
- Specified by:
canExecuteItem
in classAbstractContributionItem
- Returns:
- if the item can be executed
-