public final class ActionHandler extends AbstractHandler
IAction to
IHandler.ActionHandler| Constructor and Description |
|---|
ActionHandler(IAction action)
Deprecated.
Creates a new instance of this class given an instance of
IAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandlerListener(IHandlerListener handlerListener)
Deprecated.
Registers an instance of
IHandlerListener to listen for
changes to properties of this instance. |
void |
dispose()
Deprecated.
Removes the property change listener from the action.
|
Object |
execute(Map parameterValuesByName)
Deprecated.
Executes with the map of parameter values by name.
|
IAction |
getAction()
Deprecated.
Returns the action associated with this handler
|
Map |
getAttributeValuesByName()
Deprecated.
This simply return an empty map.
|
void |
removeHandlerListener(IHandlerListener handlerListener)
Deprecated.
Unregisters an instance of
IPropertyListener listening for
changes to properties of this instance. |
String |
toString()
Deprecated.
|
execute, fireHandlerChanged, fireHandlerChanged, hasListeners, isEnabled, isHandledaddHandlerListener, removeHandlerListeneraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectpublic ActionHandler(IAction action)
IAction.action - the action. Must not be null.public void addHandlerListener(IHandlerListener handlerListener)
IHandlerIHandlerListener to listen for
changes to properties of this instance.addHandlerListener in class AbstractHandlerhandlerListener - the instance to register. Must not be null. If
an attempt is made to register an instance which is already
registered with this instance, no operation is performed.IHandler.addHandlerListener(org.eclipse.ui.commands.IHandlerListener)public void dispose()
dispose in interface IHandlerdispose in class AbstractHandlerIHandler.dispose()public Object execute(Map parameterValuesByName) throws ExecutionException
IHandlerparameterValuesByName - the map of parameter values by name. Reserved for future use,
must be null.null.ExecutionException - if an exception occurred during execution.public IAction getAction()
public Map getAttributeValuesByName()
AbstractHandlergetAttributeValuesByName in class AbstractHandlernull. If this map is not
empty, its collection of keys is guaranteed to only contain
instances of String.IHandler.getAttributeValuesByName()public void removeHandlerListener(IHandlerListener handlerListener)
IHandlerIPropertyListener listening for
changes to properties of this instance.removeHandlerListener in class AbstractHandlerhandlerListener - the instance to unregister. Must not be null.
If an attempt is made to unregister an instance which is not
already registered with this instance, no operation is
performed.IHandler.removeHandlerListener(org.eclipse.ui.commands.IHandlerListener)Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.