public interface IHandler
AbstractHandler
Modifier and Type | Method and Description |
---|---|
void |
addHandlerListener(IHandlerListener handlerListener)
Registers an instance of
IHandlerListener to listen for
changes to properties of this instance. |
void |
dispose()
Disposes of this handler.
|
Object |
execute(ExecutionEvent event)
Executes with the map of parameter values by name.
|
boolean |
isEnabled()
Returns whether this handler is capable of executing at this moment in
time.
|
boolean |
isHandled()
Returns whether this handler is really capable of handling delegation.
|
void |
removeHandlerListener(IHandlerListener handlerListener)
Unregisters an instance of
IHandlerListener listening for
changes to properties of this instance. |
void addHandlerListener(IHandlerListener handlerListener)
IHandlerListener
to listen for
changes to properties of this instance.handlerListener
- 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.void dispose()
Object execute(ExecutionEvent event) throws ExecutionException
event
- An event containing all the information about the current
state of the application; must not be null
.null
.ExecutionException
- if an exception occurred during execution.boolean isEnabled()
true
if the command is enabled; false
otherwise.IHandler2.setEnabled(Object)
boolean isHandled()
true
if the handler is handled; false
otherwise.void removeHandlerListener(IHandlerListener handlerListener)
IHandlerListener
listening for
changes to properties of this instance.handlerListener
- 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.
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.