<?xml version="1.0" encoding="Windows-1255" ?><Interface name="KitCommands" alias="$ENV" id="core.env:KitCommands" sort="23" urn="core.env:extensions.KitCommands.js" toc="\Extension Points"><Summary>Extension point for defining kit commands.</Summary><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
<Method name="defineCommand" sortGroup="true" scope="public" id="core.env:KitCommands!defineCommand" sort="35" group="Methods" seq="0000"><Summary>Defines a new command object.</Summary><Parameters signature="method:: &lt;i&gt;$ENV&lt;/i&gt;.&lt;b&gt;defineCommand&lt;/b&gt;(&lt;i&gt;def&lt;/i&gt;) &amp;rarr; &lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;"><Param name="def" type="COMMAND_DEF" typeRef="&lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;">The new command object.</Param></Parameters><Return type="COMMAND_DEF" typeRef="&lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;">The newly defined command.</Return><Remarks>&lt;h2&gt;Xml definition of a command in a configuration file&lt;/h2&gt;
   &lt;pre&gt;
   &amp;lt;CONFIGURE type=&amp;quot;COMMANDS&amp;quot;&amp;gt;
   ?  &amp;lt;HEADER&amp;gt;
   ?     &amp;lt;PRAGMA&amp;gt;# Pragmas section&amp;lt;/PRAGMA&amp;gt;
   ?     &amp;lt;SCRIPT&amp;gt;# Code section. Place here functions\variables
                   which you want to address from within the command tags
         &amp;lt;/SCRIPT&amp;gt;
      &amp;lt;/HEADER&amp;gt;
      &amp;lt;COMMANDS&amp;gt;
   +     &amp;lt;COMMAND id=&amp;quot;com.sap.mypackage:commandId&amp;quot;&amp;gt;
            # For complete description of command
              definition see &lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;
   ?        &amp;lt;PROPERTIES&amp;gt;
   *           &amp;lt;propertyName type=&amp;quot;[function | ]&amp;quot;/&amp;gt;
                    # Represents a property of the command
                    You can assign the 'type' attribute for
                    evaluating the value of the property
                    as a function
            &amp;lt;/PROPERTIES&amp;gt;
         &amp;lt;/COMMAND&amp;gt;
      &amp;lt;/COMMANDS&amp;gt;
   &amp;lt;/CONFIGURE&amp;gt;
   &lt;/pre&gt;
   &lt;h2&gt;Example&lt;/h2&gt;
   &lt;pre&gt;
   &amp;lt;CONFIGURE type=&amp;quot;COMMANDS&amp;quot;&amp;gt;
      &amp;lt;COMMANDS&amp;gt;
         &amp;lt;COMMAND id=&amp;quot;FILE_CLOSE&amp;quot;&amp;gt;
            &amp;lt;PROPERTIES&amp;gt;
               &amp;lt;signal&amp;gt;closeStudio&amp;lt;/signal&amp;gt;
               &amp;lt;text&amp;gt;#TEXT[XMIT_CMD_FILE_CLOSE]&amp;lt;/text&amp;gt;
               &amp;lt;icon&amp;gt;#URL[&lt;code&gt;skin:icons.close.gif]&amp;lt;/icon&amp;gt;&lt;/code&gt;
               &amp;lt;category&amp;gt;STANDARD&amp;lt;/category&amp;gt;
           &amp;lt;/PROPERTIES&amp;gt;
         &amp;lt;/COMMAND&amp;gt;
      &amp;lt;/COMMANDS&amp;gt;
   &amp;lt;/CONFIGURE&amp;gt;
   &lt;/pre&gt;</Remarks></Method>
<Method name="getCommand" sortGroup="true" scope="public" id="core.env:KitCommands!getCommand" sort="35" group="Methods" seq="0001"><Summary>Returns a specified command object.</Summary><Parameters signature="method:: &lt;i&gt;$ENV&lt;/i&gt;.&lt;b&gt;getCommand&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; &lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;"><Param name="id" type="QName">Command Id.</Param></Parameters><Return type="COMMAND_DEF" typeRef="&lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;">The requested command object.</Return></Method>
<Method name="getCommandsTable" sortGroup="true" scope="public" id="core.env:KitCommands!getCommandsTable" sort="35" group="Methods" seq="0002"><Summary>Returns the complete commands table.</Summary><Parameters signature="method:: &lt;i&gt;$ENV&lt;/i&gt;.&lt;b&gt;getCommandsTable&lt;/b&gt;() &amp;rarr; &lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;[id]"></Parameters><Return type="COMMAND_DEF[id]" typeRef="&lt;q ref=&quot;core.env:KitCommands!COMMAND_DEF&quot;&gt;COMMAND_DEF&lt;/q&gt;[id]">Table of command objects, indexed by command id.</Return><Remarks>Command id's are stored in uppercase. Use &lt;q ref=&quot;core.lib:Basic!UPPER&quot;&gt;UPPER&lt;/q&gt; macro to convert the command id to uppercase
before using it as the index in this table.</Remarks></Method>
<Method name="parseCommand" sortGroup="true" scope="public" id="core.env:KitCommands!parseCommand" sort="35" group="Methods" seq="0003"><Summary>Parses the given command node and returns a string which represents its details.</Summary><Parameters signature="method:: &lt;i&gt;$ENV&lt;/i&gt;.&lt;b&gt;parseCommand&lt;/b&gt;(&lt;i&gt;commandNode&lt;/i&gt;) &amp;rarr; void"><Param name="commandNode">Command node to parse.</Param></Parameters><Return></Return></Method>
<Method name="removeCommand" sortGroup="true" scope="public" id="core.env:KitCommands!removeCommand" sort="35" group="Methods" seq="0004"><Summary>Removes a specified command definition.</Summary><Parameters signature="method:: &lt;i&gt;$ENV&lt;/i&gt;.&lt;b&gt;removeCommand&lt;/b&gt;(&lt;i&gt;id&lt;/i&gt;) &amp;rarr; void"><Param name="id" type="QName">The id of the command to remove.</Param></Parameters><Return></Return></Method>
<Structure name="COMMAND_DEF" sortGroup="true" id="core.env:KitCommands!COMMAND_DEF" sort="41" group="Structures" seq="0005"><Summary>Represents a Storyboard command definition.</Summary><Remarks>The COMMAND_DEF structure is made of:
      &lt;table class=&quot;BOTH&quot;&gt;&lt;tr&gt;&lt;td class=&quot;H V&quot;&gt;Name &lt;/td&gt;&lt;td class=H&gt;Type &lt;/td&gt;&lt;td class=H&gt;Description &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;id &lt;/td&gt;&lt;td&gt;QName &lt;/td&gt;&lt;td&gt;Command Id  - must be prefixed with namespace e.g. com.sap.mypackage:id &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;signal &lt;/td&gt;&lt;td&gt;&lt;q ref=&quot;core.lib:Global!SIGNAL_DEF&quot;&gt;SIGNAL_DEF&lt;/q&gt; &lt;/td&gt;&lt;td&gt;Signal to raise when the command is invoked &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;text &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Command text label &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;icon &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Command icon's relative url &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;key &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;Shortcut key mnemonic (e.g, Ctrl+S) &lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class=V&gt;category &lt;/td&gt;&lt;td&gt;String &lt;/td&gt;&lt;td&gt;The command category (can also be a regular expression) &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</Remarks></Structure>
</Topics>
</Interface>