@Deprecated public abstract class AbstractHandler extends AbstractHandler implements IHandler
IHandler. This
abstract implementation provides support for handler listeners. You should
subclass from this method unless you want to implement your own listener
support. Subclasses should call
fireHandlerChanged(HandlerEvent)when the handler
changes. Subclasses should also override
getAttributeValuesByName()if they have any
attributes.AbstractHandler| Constructor and Description |
|---|
AbstractHandler()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHandlerListener(IHandlerListener handlerListener)
Deprecated.
|
void |
dispose()
Deprecated.
|
Object |
execute(ExecutionEvent event)
Deprecated.
|
protected void |
fireHandlerChanged(HandlerEvent handlerEvent)
Deprecated.
|
protected void |
fireHandlerChanged(HandlerEvent handlerEvent)
Deprecated.
|
Map |
getAttributeValuesByName()
Deprecated.
|
protected boolean |
hasListeners()
Deprecated.
|
boolean |
isEnabled()
Deprecated.
|
boolean |
isHandled()
Deprecated.
|
void |
removeHandlerListener(IHandlerListener handlerListener)
Deprecated.
|
addHandlerListener, removeHandlerListener, setBaseEnabled, setEnabledaddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject@Deprecated public void addHandlerListener(IHandlerListener handlerListener)
IHandlerIHandlerListener 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.IHandler.addHandlerListener(IHandlerListener)@Deprecated public void dispose()
dispose in interface IHandlerdispose in class AbstractHandlerIHandler.dispose()@Deprecated public Object execute(ExecutionEvent event) throws ExecutionException
IHandlerexecute in interface IHandlerevent - 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.@Deprecated protected void fireHandlerChanged(HandlerEvent handlerEvent)
fireHandlerChanged in class AbstractHandlerhandlerEvent - the event describing changes to this instance. Must not be
null.@Deprecated protected void fireHandlerChanged(HandlerEvent handlerEvent)
@Deprecated public Map getAttributeValuesByName()
null. If this map is not
empty, its collection of keys is guaranteed to only contain
instances of String.IHandler.getAttributeValuesByName()@Deprecated protected final boolean hasListeners()
hasListeners in class AbstractHandler@Deprecated public boolean isEnabled()
AbstractHandlerAbstractHandler.setEnabled(Object) so they can be notified
about framework execution contexts.isEnabled in interface IHandlerisEnabled in class AbstractHandlertrueAbstractHandler.setEnabled(Object),
AbstractHandler.setBaseEnabled(boolean)@Deprecated public boolean isHandled()
AbstractHandlerisHandled in interface IHandlerisHandled in class AbstractHandlertrue@Deprecated public void removeHandlerListener(IHandlerListener handlerListener)
IHandlerIPropertyListener 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.IHandler.removeHandlerListener(IHandlerListener)
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.