An instance of ICommand is a handle representing a command as defined by the extension point org.eclipse.ui.commands. The identifier of the handle is identifier of the command being represented.
An instance of ICommand can be obtained from an instance of ICommandManager for any identifier, whether or not a command with that identifier defined in the plugin registry.
The handle-based nature of this API allows it to work well with runtime plugin activation and deactivation. If a command is defined, that means that its corresponding plug-in is active. If the plug-in is then deactivated, the command will still exist but it will be undefined. An attempts to use an undefined command will result in a NotDefinedException being thrown.
This interface is not intended to be extended or implemented by clients.
@since 3.0 @see ICommandListener @see ICommandManager @see org.eclipse.core.commands.Command @deprecated Please use the "org.eclipse.core.commands" plug-in instead. | |
| |