| Home >> All >> javax >> ide >> [ command Javadoc ] |
javax.ide.command: Javadoc index of package javax.ide.command.
Package Samples:
javax.ide.command
Classes:
CommandProcessor: The CommandProcessor is responsible for managing the execution of the IDE commands and maintining the undo stack. 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) 55 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, ...
Command: The Command interface defines the interface of all command objects. This interface consists of a procedure, doit , to execute a command. Concrete Command subclasses implement the necessary behavior to carry out a specific command. This interface also provides additional methods necessary to implement the undo service provided by the CommandProcessor . For the undo mechanism it is necessary to distinguish three types of commands: NO_CHANGE : A command that require no undo. NORMAL : A command that can be undone. NO_UNDO : A command that cannot be undone, and which prevents the undo of previously ...
Context: The Context class provides information about the state of the IDE when a command is in the process of being executed. Such information includes: the javax.ide.model.Document the user is working on, the javax.ide.model.Project the user is working on, and the currently selected javax.ide.model.Element s in the active javax.ide.view.View . In addition, to this information, the context allows clients to store arbitrary data to pass on to a command. Such data is stored in the context under a client specified string key. The data can be retrieved using that same key.
Controller: Controllers encapulate extension defined UpdateHandler s and Controller.NullInvokeHandler s. Generally, javax.ide.view.View s use controllers to check whether a context sensitive command can be executed given the current context, and to do the actual execution of that command.
InvokeHandler: InvokeHandler s are responsible for performing an action in a specific context.
UpdateHandler: UpdateHandler s decide when actions are enabled or disabled based on a context.
| Home | Contact Us | Privacy Policy | Terms of Service |