|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.commands.AbstractHandler
org.eclipse.ui.commands.AbstractHandler
org.eclipse.ui.commands.ActionHandler
This class adapts instances of IAction
to
IHandler
.
ActionHandler
Constructor Summary | |
---|---|
ActionHandler(IAction action)
Deprecated. Creates a new instance of this class given an instance of IAction . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.eclipse.ui.commands.AbstractHandler |
---|
execute, fireHandlerChanged, fireHandlerChanged, hasListeners, isEnabled, isHandled |
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
---|
addHandlerListener, removeHandlerListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ActionHandler(IAction action)
IAction
.
action
- the action. Must not be null
.Method Detail |
public void addHandlerListener(IHandlerListener handlerListener)
IHandler
IHandlerListener
to listen for
changes to properties of this instance.
addHandlerListener
in interface IHandler
addHandlerListener
in class AbstractHandler
IHandler.addHandlerListener(org.eclipse.ui.commands.IHandlerListener)
public void dispose()
dispose
in interface IHandler
dispose
in class AbstractHandler
IHandler.dispose()
public Object execute(Map parameterValuesByName) throws ExecutionException
IHandler
parameterValuesByName
- 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()
AbstractHandler
getAttributeValuesByName
in interface IHandler
getAttributeValuesByName
in class AbstractHandler
IHandler.getAttributeValuesByName()
public void removeHandlerListener(IHandlerListener handlerListener)
IHandler
IPropertyListener
listening for
changes to properties of this instance.
removeHandlerListener
in interface IHandler
removeHandlerListener
in class AbstractHandler
IHandler.removeHandlerListener(org.eclipse.ui.commands.IHandlerListener)
public final String toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.