This section describes the declarative syntax used by rules that define commands.<h2>Syntax</h2> <pre> <i>commands-rule:</i> <i>command-tag</i> <i>command-tag</i> <i>commands-rule</i> </pre> <h2>&lt;command&gt; tag</h2> Defines a new command. All standard command attributes are supported (see <q ref="core.env:KitCommands!COMMAND_DEF">COMMAND_DEF</q> for details). <pre> <i>command-tag</i>: &lt;command <i>command-attributes=""</i> /&gt; </pre> <h2>Example</h2> <pre> &lt;extend rule="defineCommands"&gt; &lt;constraint&gt;model isa gml2:Model&lt;/constraint&gt; &lt;comments&gt;Custom workspace commands&lt;/comments&gt; &lt;command id="FILE_PRINT" signal="BOARD-&gt;print" text="Print" icon="URL[<code>skin:icons.print.gif]"</code> category="STANDARD"/&gt; &lt;command id="FILE_SAVE" signal="$ENV-&gt;saveModel" text="Save" icon="URL[<code>skin:icons.save.gif]"</code> key="Alt+S" category="STANDARD"&gt; &lt;disable&gt; var model = $ENV.model; return !model || !model.isEditable() || !model.dirty; &lt;/disable&gt; &lt;/command&gt; &lt;/extend&gt; </pre>(c) SAP AG 2003-2006. All rights reserved.