org.eclipse.mylar.monitor
Class AbstractCommandMonitor
java.lang.Object
org.eclipse.mylar.monitor.AbstractCommandMonitor
- All Implemented Interfaces:
- org.eclipse.core.commands.IExecutionListener
- Direct Known Subclasses:
- KeybindingCommandMonitor
public abstract class AbstractCommandMonitor
- extends java.lang.Object
- implements org.eclipse.core.commands.IExecutionListener
Self-registering on construction.
- Author:
- Mik Kersten
Method Summary |
void |
dispose()
|
protected abstract void |
handleCommandExecution(java.lang.String commandId,
org.eclipse.core.commands.ExecutionEvent event)
|
void |
notHandled(java.lang.String commandId,
org.eclipse.core.commands.NotHandledException exception)
|
void |
postExecuteFailure(java.lang.String commandId,
org.eclipse.core.commands.ExecutionException exception)
|
void |
postExecuteSuccess(java.lang.String commandId,
java.lang.Object returnValue)
|
void |
preExecute(java.lang.String commandId,
org.eclipse.core.commands.ExecutionEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCommandMonitor
public AbstractCommandMonitor()
- Workbench must be active.
dispose
public void dispose()
postExecuteFailure
public void postExecuteFailure(java.lang.String commandId,
org.eclipse.core.commands.ExecutionException exception)
- Specified by:
postExecuteFailure
in interface org.eclipse.core.commands.IExecutionListener
notHandled
public void notHandled(java.lang.String commandId,
org.eclipse.core.commands.NotHandledException exception)
- Specified by:
notHandled
in interface org.eclipse.core.commands.IExecutionListener
postExecuteSuccess
public void postExecuteSuccess(java.lang.String commandId,
java.lang.Object returnValue)
- Specified by:
postExecuteSuccess
in interface org.eclipse.core.commands.IExecutionListener
preExecute
public void preExecute(java.lang.String commandId,
org.eclipse.core.commands.ExecutionEvent event)
- Specified by:
preExecute
in interface org.eclipse.core.commands.IExecutionListener
handleCommandExecution
protected abstract void handleCommandExecution(java.lang.String commandId,
org.eclipse.core.commands.ExecutionEvent event)