Package org.eclipse.jface.action
Interface ExternalActionManager.IExecuteCallback
-
- All Known Implementing Classes:
ExternalActionManager.CommandCallback
- Enclosing class:
- ExternalActionManager
public static interface ExternalActionManager.IExecuteCallbackA callback for executing execution events. Allows
ActionContributionItemsto fire useful events.Clients must not implement this interface and must not extend.
- Since:
- 3.4
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidnotDefined(IAction action, NotDefinedException exception)Fires aNotDefinedExceptionbecause the action was not defined.voidnotEnabled(IAction action, NotEnabledException exception)Fires aNotEnabledExceptionbecause the action was not enabled.voidpostExecuteFailure(IAction action, ExecutionException exception)Creates anExecutionExceptionwhen the action returned a failure.voidpostExecuteSuccess(IAction action, Object returnValue)Fires an execution event when the action returned a success.voidpreExecute(IAction action, Event e)Fires an execution event before an action is run.
-
-
-
Method Detail
-
notEnabled
void notEnabled(IAction action, NotEnabledException exception)
Fires aNotEnabledExceptionbecause the action was not enabled.- Parameters:
action- The action contribution that caused the exception, nevernull.exception- TheNotEnabledException, nevernull.
-
notDefined
void notDefined(IAction action, NotDefinedException exception)
Fires aNotDefinedExceptionbecause the action was not defined.- Parameters:
action- The action contribution that caused the exception, nevernull.exception- TheNotDefinedException, nevernull.
-
preExecute
void preExecute(IAction action, Event e)
Fires an execution event before an action is run.- Parameters:
action- The action contribution that requires an execution event to be fired. Cannot benull.e- The SWT Event, may benull.
-
postExecuteSuccess
void postExecuteSuccess(IAction action, Object returnValue)
Fires an execution event when the action returned a success.- Parameters:
action- The action contribution that requires an execution event to be fired. Cannot benull.returnValue- The command's result, may benull.
-
postExecuteFailure
void postExecuteFailure(IAction action, ExecutionException exception)
Creates anExecutionExceptionwhen the action returned a failure.- Parameters:
action- The action contribution that caused the exception, nevernull.exception- TheExecutionException, nevernull.
-
-