1.1. Action which is a wrapper around a command

Action which delegates its job to a command (see Chapter 6, Commands written in the Java™ programming language in XMLmind XML Editor - Commands). This command delegate is specified using the command child element.

Attributes of the command child element:

name

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:

  • must be declared in this GUI specification using a command element;

  • must be referenced in the hidden child element of the layout element.

parameter

Specifies the parameter of the command delegate, if any.

editingContextSensitive

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>