|
Eclipse Platform Release 3.6 |
|||||||||
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.debug.ui.actions.DebugCommandHandler
public abstract class DebugCommandHandler
Abstract base class for re-targeting command framework handlers, which
delegate execution to IDebugCommandHandler
handlers. The specific type of IDebugCommandHandler
is
determined by the abstract getCommandType()
method.
Note: This class is not an implementation of the IDebugCommandHandler
interface, which was somewhat unfortunately named. IDebugCommandHandler
is an interface that used only by the debugger plug-ins. This class implements
IHandler
interface and is to be used with the
platform commands framework.
Clients may subclass this class.
IDebugCommandHandler
,
IHandler
Constructor Summary | |
---|---|
DebugCommandHandler()
The constructor adds the handler as the |
Method Summary | |
---|---|
void |
dispose()
Clean up when removing |
Object |
execute(ExecutionEvent event)
Executes with the map of parameter values by name. |
protected abstract Class |
getCommandType()
Returns the IDebugCommandHandler
command handler that type this action executes. |
protected boolean |
getInitialEnablement()
Returns whether this action should be enabled when initialized and there is no active debug context. |
boolean |
isEnabled()
Whether this handler is capable of executing at this time. |
protected void |
postExecute(IRequest request,
Object[] targets)
This method is called after the completion of the execution of this command. |
void |
setEnabled(Object evaluationContext)
Called by the framework to allow the handler to update its enabled state by extracting the same information available at execution time. |
Methods inherited from class org.eclipse.core.commands.AbstractHandler |
---|
addHandlerListener, fireHandlerChanged, hasListeners, isHandled, removeHandlerListener, setBaseEnabled |
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 |
Constructor Detail |
---|
public DebugCommandHandler()
Method Detail |
---|
public void setEnabled(Object evaluationContext)
AbstractHandler
setEnabled
in interface IHandler2
setEnabled
in class AbstractHandler
evaluationContext
- the application context. May be null
AbstractHandler.setBaseEnabled(boolean)
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)
public Object execute(ExecutionEvent event) throws ExecutionException
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.protected void postExecute(IRequest request, Object[] targets)
request
- The completed request object which was given the the
debug command handler.targets
- Objects which were the targets of this actionprotected abstract Class getCommandType()
IDebugCommandHandler
command handler that type this action executes.
IDebugCommandHandler
protected boolean getInitialEnablement()
public void dispose()
dispose
in interface IHandler
dispose
in class AbstractHandler
IHandler.dispose()
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.