IDebugCommandHandlerhandlers. The specific type of
IDebugCommandHandleris determined by the abstract
Note: This class is not an implementation of the
interface, which was somewhat unfortunately named.
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.
Constructor SummaryConstructorDescriptionThe constructor adds the handler as the
Method SummaryModifier and TypeMethodDescription
dispose()Clean up when removingExecutes with the map of parameter values by name.
protected abstract Class<?>
protected booleanReturns whether this action should be enabled when initialized and there is no active debug context.
booleanWhether this handler is capable of executing at this time.
protected voidThis method is called after the completion of the execution of this command.
voidCalled 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
DebugCommandHandlerpublic DebugCommandHandler()The constructor adds the handler as the
setEnabledpublic void setEnabled
(Object evaluationContext)Description copied from class:
AbstractHandlerCalled by the framework to allow the handler to update its enabled state by extracting the same information available at execution time. Clients may override if they need to extract information from the application context.
isEnabledpublic boolean isEnabled()Description copied from class:
AbstractHandlerWhether this handler is capable of executing at this time. Subclasses may override this method. If clients override this method they should also consider overriding
AbstractHandler.setEnabled(Object)so they can be notified about framework execution contexts.
executeDescription copied from interface:
IHandlerExecutes with the map of parameter values by name.
event- An event containing all the information about the current state of the application; must not be
- the result of the execution. Reserved for future use, must be
ExecutionException- if an exception occurred during execution.
postExecuteThis method is called after the completion of the execution of this command. Extending classes may override this method to perform additional operation after command execution.
request- The completed request object which was given the the debug command handler.
targets- Objects which were the targets of this action
getCommandTypeprotected abstract Class<?> getCommandType()
- command class.
- See Also:
getInitialEnablementprotected boolean getInitialEnablement()Returns whether this action should be enabled when initialized and there is no active debug context.
- false, by default
disposepublic void dispose()Clean up when removing