| java.lang.Object net.refractions.udig.project.command.CommandManager
CommandManager | public class CommandManager implements CommandStack,NavCommandStack(Code) | | A commands Manager executes commands in a seperate thread, either synchronously or a
synchronously.
author: Jesse since: 1.0.0 |
Inner Class :public class Executor extends Job | |
Inner Class :public static class Request | |
commandExecutor | Executor commandExecutor(Code) | | |
CommandManager | public CommandManager(String managerName, ErrorHandler handler, CommandListener commandCompletionListener)(Code) | | Creates a new instance of CommandManager
Parameters: handler - an error handler to use to handle thrown exceptions. |
CommandManager | public CommandManager(String managerName, ErrorHandler handler)(Code) | | Creates a new instance of CommandManager
Parameters: handler - an error handler to use to handle thrown exceptions. |
CommandManager | public CommandManager(String managerName, ErrorHandler handler, CommandListener commandCompletionListener, long timeout2)(Code) | | Creates a new instance of CommandManager
Parameters: handler - an error handler to use to handle thrown exceptions. |
aSyncExecute | public boolean aSyncExecute(Command command)(Code) | | Execute Command asyncrounously. IE return immediately, do not wait until command is complete
before returning.
true if no problems were encountered while queueing command. Problems will typicallyoccur when the command is synchronous and it times out or is interrupted. |
addErrorHandler | public void addErrorHandler(ErrorHandler handler)(Code) | | Adds an Errorhandler to the list of error handlers
Parameters: handler - the error handler to add. See Also: ErrorHandler |
execute | public boolean execute(Command command, boolean async)(Code) | | Executes a command. Calls the Errorhandler if an exception is thrown.
Parameters: command - The command to execute Parameters: async - flag indicating wether command should be executed sync vs async. true if no problems were encountered while queueing command. Problems will typicallyoccur when the command is synchronous and it times out or is interrupted. |
getMaxHistorySize | public int getMaxHistorySize()(Code) | | |
redo | public void redo(boolean runAsync)(Code) | | Executes the last undone command, if there are any commands to undo.
Parameters: runAsync - true to run undo asynchronously |
removeErrorHandler | public void removeErrorHandler(ErrorHandler handler)(Code) | | Removes an Errorhandler from the list of error handlers
Parameters: handler - the error handler to remove. See Also: ErrorHandler |
syncExecute | public boolean syncExecute(Command command)(Code) | | Execute Command syncrounously. IE wait until command is complete before returning.
true if no problems were encountered while queueing command. Problems will typicallyoccur when the command is synchronous and it times out or is interrupted. |
undo | public void undo(boolean runAsync)(Code) | | Undoes the last command if possible.
Parameters: runAsync - true to run undo asynchronously |
|
|