- All Implemented Interfaces:
Clients may instantiate this class.
- This class is not intended to be subclassed by clients.
Method SummaryModifier and TypeMethodDescription
dispose()Allows the action delegate to clean up.
voidAllows the action delegate to initialize itself after being created by the proxy action.
voidInitializes this action delegate with the workbench window it will work in.
run()The default implementation of this
IActionmethod does nothing.
voidPerforms this action.
voidPerforms this action, passing the SWT event which triggered it.
voidNotifies this action delegate that the selection in the workbench has changed.
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
(String identifier)Constructs an action that opens the launch configuration dialog in the context of the specified launch group.
identifier- unique identifier of a launch group extension
runpublic void run()Description copied from class:
ActionThe default implementation of this
IActionmethod does nothing. Subclasses should override this method if they do not need information from the triggering event, or override
runWithEvent(Event)if they do.
runWithEventPerforms this action, passing the SWT event which triggered it. This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.
Note: This method is called instead of
runpublic void run
(IAction action)Description copied from interface:
IActionDelegatePerforms this action.
This method is called by the proxy action when the action has been triggered. Implement this method to do the actual work.
Note: If the action delegate also implements
IActionDelegate2, then this method is not invoked but instead the
runWithEvent(IAction, Event)method is called.
disposepublic void dispose()Allows the action delegate to clean up. This lifecycle method is called when the proxy action is done with this action delegate. This is the last method called.
initpublic void init
(IAction action)Allows the action delegate to initialize itself after being created by the proxy action. This lifecycle method is called after the action delegate has been created and before any other method of the action delegate is called.
initpublic void init
(IWorkbenchWindow window)Description copied from interface:
IWorkbenchWindowActionDelegateInitializes this action delegate with the workbench window it will work in.
selectionChangedDescription copied from interface:
IActionDelegateNotifies this action delegate that the selection in the workbench has changed.
Implementers can use this opportunity to change the availability of the action or to modify other presentation properties.
When the selection changes, the action enablement state is updated based on the criteria specified in the plugin.xml file. Then the delegate is notified of the selection change regardless of whether the enablement criteria in the plugin.xml file is met.