Action which delegates its job to a command (see Chapter 6, Commands written in the Java™ programming language in command
child element.
Attributes of the command
child element:
Specifies the name under which the command has been registered.
This cannot be a configuration specific command. For example, this cannot be xhtml.convertToPS
, which converts XHTML documents to PostScript™ and PDF.
If the command delegate is not a built-in command, but instead, is a custom generic command specially written to be wrapped in an action, this command:
Specifies the parameter of the command delegate, if any.
Specifies whether the command delegate is editing context sensitive, that is, is enabled or disabled depending on the editing context (Which node is selected? Is some text selected? Etc).
The majority of commands are editing context sensitive. That's why the default value of this attribute is true
.
Example:
<action name="insertAfterAction" label="Insert _After..." icon="icons/insertAfterAction.gif"> <command name="insert" parameter="after[implicitElement]" /> </action>