Package org.eclipse.ui.internal
Class WWinPluginPulldown
- All Implemented Interfaces:
EventListener,IAction,ISelectionChangedListener,IActionSetContributionItem,INullSelectionListener,IPluginContribution,ISelectionListener
A workbench window pulldown action.
-
Field Summary
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT -
Constructor Summary
ConstructorsConstructorDescriptionWWinPluginPulldown(IConfigurationElement actionElement, IWorkbenchWindow window, String id, int style) Constructs a new instance ofWWinPluginPulldown. -
Method Summary
Modifier and TypeMethodDescriptionprotected IWorkbenchWindowPulldownDelegateReturns the pulldown delegate.protected IActionDelegatevalidateDelegate(Object obj) Validates the object is a delegate of the expected type.Methods inherited from class org.eclipse.ui.internal.WWinPluginAction
dispose, getActionSetId, initDelegate, isOkToCreateDelegate, refreshActionList, refreshSelection, runWithEvent, setActionSetId, setChecked, setHelpListener, toStringMethods inherited from class org.eclipse.ui.internal.PluginAction
createDelegate, disposeDelegate, getConfigElement, getDelegate, getLocalId, getMenuCreator, getOverrideActionId, getPluginId, getSelection, refreshEnablement, run, selectionChanged, selectionChanged, selectionChangedMethods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setDescription, setDisabledImageDescriptor, setEnabled, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipTextMethods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListenerMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Constructor Details
-
WWinPluginPulldown
public WWinPluginPulldown(IConfigurationElement actionElement, IWorkbenchWindow window, String id, int style) Constructs a new instance ofWWinPluginPulldown.- Parameters:
actionElement- The registry element from which the pulldown delegate should be created; must not benull.id- The identifier of this action delegate; may benull.window- The workbench window on which this pulldown should act; must not benull.style- The style.
-
-
Method Details
-
validateDelegate
Description copied from class:PluginActionValidates the object is a delegate of the expected type. Subclasses can override to check for specific delegate types.Note: Calls to the object are not allowed during this method.
- Overrides:
validateDelegatein classWWinPluginAction- Parameters:
obj- a possible action delegate implementation- Returns:
- the
IActionDelegateimplementation for the object - Throws:
WorkbenchException- if not of the expected delegate type
-
getPulldownDelegate
Returns the pulldown delegate. If it does not exist it is created. Can returnnullif delegate creation failed.
-