@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, setEnabled
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
@Deprecated public void addHandlerListener(IHandlerListener handlerListener)
IHandler
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.IHandler.addHandlerListener(IHandlerListener)
@Deprecated public void dispose()
dispose
in interface IHandler
dispose
in class AbstractHandler
IHandler.dispose()
@Deprecated public Object execute(ExecutionEvent event) throws ExecutionException
IHandler
execute
in interface IHandler
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.@Deprecated protected void fireHandlerChanged(HandlerEvent handlerEvent)
fireHandlerChanged
in class AbstractHandler
handlerEvent
- 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()
AbstractHandler
AbstractHandler.setEnabled(Object)
so they can be notified
about framework execution contexts.isEnabled
in interface IHandler
isEnabled
in class AbstractHandler
true
AbstractHandler.setEnabled(Object)
,
AbstractHandler.setBaseEnabled(boolean)
@Deprecated public boolean isHandled()
AbstractHandler
isHandled
in interface IHandler
isHandled
in class AbstractHandler
true
@Deprecated public void removeHandlerListener(IHandlerListener handlerListener)
IHandler
IPropertyListener
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, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.