|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.commands.AbstractHandler
public abstract class AbstractHandler
This class is a partial implementation of 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 Summary | |
|---|---|
AbstractHandler()
Deprecated. |
|
| Method Summary | |
|---|---|
void |
addHandlerListener(IHandlerListener handlerListener)
Deprecated. |
void |
dispose()
Deprecated. The default implementation does nothing. |
Object |
execute(ExecutionEvent event)
Deprecated. Executes with the map of parameter values by name. |
protected void |
fireHandlerChanged(HandlerEvent handlerEvent)
Deprecated. Fires an event to all registered listeners describing changes to this instance. |
protected void |
fireHandlerChanged(HandlerEvent handlerEvent)
Deprecated. |
Map |
getAttributeValuesByName()
Deprecated. This simply return an empty map. |
protected boolean |
hasListeners()
Deprecated. Returns true iff there is one or more IHandlerListeners attached to this AbstractHandler. |
boolean |
isEnabled()
Deprecated. Whether this handler is capable of executing at this time. |
boolean |
isHandled()
Deprecated. Whether this handler is capable of handling delegated responsibilities at this time. |
void |
removeHandlerListener(IHandlerListener handlerListener)
Deprecated. |
| Methods inherited from class org.eclipse.core.commands.AbstractHandler |
|---|
addHandlerListener, removeHandlerListener |
| Methods inherited from class org.eclipse.core.commands.common.EventManager |
|---|
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.commands.IHandler |
|---|
execute |
| Constructor Detail |
|---|
public AbstractHandler()
| Method Detail |
|---|
public void addHandlerListener(IHandlerListener handlerListener)
IHandler.addHandlerListener(IHandlerListener)public void dispose()
dispose in interface IHandlerdispose in class AbstractHandlerIHandler.dispose()
public Object execute(ExecutionEvent event)
throws ExecutionException
IHandler
execute 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.protected void fireHandlerChanged(HandlerEvent handlerEvent)
fireHandlerChanged in class AbstractHandlerhandlerEvent - the event describing changes to this instance. Must not be
null.protected void fireHandlerChanged(HandlerEvent handlerEvent)
public Map getAttributeValuesByName()
IHandler.getAttributeValuesByName()protected final boolean hasListeners()
hasListeners in class AbstractHandlerpublic boolean isEnabled()
AbstractHandler
isEnabled in interface IHandlerisEnabled in class AbstractHandlertruepublic boolean isHandled()
AbstractHandler
isHandled in interface IHandlerisHandled in class AbstractHandlertruepublic void removeHandlerListener(IHandlerListener handlerListener)
IHandler.removeHandlerListener(IHandlerListener)
|
Eclipse Platform Release 3.2 |
|||||||||
| 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, 2006. All rights reserved.