|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.commands.AbstractHandler
org.eclipse.ui.commands.ActionHandler
This class adapts instances of IAction
to
IHandler
.
Constructor Summary | |
ActionHandler(IAction action)
Creates a new instance of this class given an instance of IAction . |
Method Summary | |
void |
dispose()
Removes the property change listener from the action. |
Object |
execute(Map parameterValuesByName)
Executes with the map of parameter values by name. |
Map |
getAttributeValuesByName()
This simply return an empty map. |
Methods inherited from class org.eclipse.ui.commands.AbstractHandler |
addHandlerListener, fireHandlerChanged, removeHandlerListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ActionHandler(IAction action)
IAction
.
action
- the action. Must not be null
.Method Detail |
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.IHandler.execute(Map)
public Map getAttributeValuesByName()
AbstractHandler
getAttributeValuesByName
in interface IHandler
getAttributeValuesByName
in class AbstractHandler
IHandler.getAttributeValuesByName()
|
Eclipse Platform Release 3.0 |
||||||||||
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, 2004. All rights reserved.