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