public abstract class CommandProcessor extends Service
 In general, all Controller implementations should use the 
 IDE command processor to execute the commands that controller handles. 
 IDE service providers must extend this class and provide an 
 implementation of the invoke(Command) method. It is up to the 
 IDE service provider implementation to decide whether it supports 
 undo/redo on a per document, or global basis.
 If the undo support provided is document based, implementors of this 
 class must make sure that after a command is executed, the 
 command processor checks the Command.getAffectedDocuments() return 
 value to detemine if other documents were affected by the current command 
 execution.
 If the Command.getAffectedDocuments() returns one or more items, then
 the undo stacks of the affected documents must be flushed in order to
 maintain document consistency.
Command| Constructor and Description | 
|---|
CommandProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
static CommandProcessor | 
getCommandProcessor()
Get the command processor implementation for this IDE. 
 | 
abstract int | 
invoke(Command cmd)
Executes the actions associated with a specific command. 
 | 
cloneLoadedServices, getService, initialize, resetAllServices, setLoadedServicespublic abstract int invoke(Command cmd) throws java.lang.Exception
Controller uses this method to tell the
 CommandProcessor that a command should be executed.cmd - the command to execute.Command.OK or 
    Command.CANCEL.java.lang.Exception - if an error occurs processing the command.public static CommandProcessor getCommandProcessor()