Package org.eclipse.core.commands
Interface IExecutionListener
- All Known Subinterfaces:
IExecutionListenerWithChecks
public interface IExecutionListener
A listener to the execution of commands. This listener will be notified if a command is about to execute, and when that execution completes. It is not possible for the listener to prevent the execution, only to respond to it in some way.
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidnotHandled(String commandId, NotHandledException exception) Notifies the listener that an attempt was made to execute a command with no handler.voidpostExecuteFailure(String commandId, ExecutionException exception) Notifies the listener that a command has failed to complete execution.voidpostExecuteSuccess(String commandId, Object returnValue) Notifies the listener that a command has completed execution successfully.voidpreExecute(String commandId, ExecutionEvent event) Notifies the listener that a command is about to execute.
-
Method Details
-
notHandled
Notifies the listener that an attempt was made to execute a command with no handler.- Parameters:
commandId- The identifier of command that is not handled; nevernullexception- The exception that occurred; nevernull.
-
postExecuteFailure
Notifies the listener that a command has failed to complete execution.- Parameters:
commandId- The identifier of the command that has executed; nevernull.exception- The exception that occurred; nevernull.
-
postExecuteSuccess
Notifies the listener that a command has completed execution successfully.- Parameters:
commandId- The identifier of the command that has executed; nevernull.returnValue- The return value from the command; may benull.
-
preExecute
Notifies the listener that a command is about to execute.- Parameters:
commandId- The identifier of the command that is about to execute, nevernull.event- The event that will be passed to theexecutemethod; nevernull.
-