<?xml version="1.0" encoding="Windows-1255" ?><Topic name="EditorRulesSyntax" title="Editors syntax" id="core.gml2:EditorRulesSyntax" sort="28" urn="core.gml2:rules.syntax.EditorRulesSyntax.txt" toc="\Rules\Syntax"><Summary>This section describes the declarative syntax used by rules that define SmartForm-based editors / palettes.</Summary><Remarks>&lt;h2&gt;Syntax&lt;/h2&gt;
&lt;pre&gt;
&lt;i&gt;editor-rule:&lt;/i&gt;
   &lt;i&gt;editor-clause&lt;/i&gt;
   &lt;i&gt;editor-clause&lt;/i&gt; &lt;i&gt;editor-rule&lt;/i&gt;

&lt;i&gt;editor-clause:&lt;/i&gt;
   &lt;i&gt;append-tag&lt;/i&gt;
   &lt;i&gt;appendToGroup-tag&lt;/i&gt;
   &lt;i&gt;remove-tag&lt;/i&gt;
   &lt;i&gt;clear-tag&lt;/i&gt;
&lt;/pre&gt;

&lt;h2&gt;&amp;lt;append&amp;gt; tag&lt;/h2&gt;
Appends one or more editor groups.
&lt;pre&gt;
&lt;i&gt;append-tag&lt;/i&gt;:
   &amp;lt;append&amp;gt;
      &lt;i&gt;group-tag&lt;/i&gt;&lt;sub&gt;many&lt;/sub&gt;
   &amp;lt;/append&amp;gt;
&lt;/pre&gt;

&lt;div class=&quot;INSET&quot;&gt;
	&lt;b&gt;&amp;lt;group&amp;gt; inner tag&lt;/b&gt;&lt;br/&gt;
	Defines a editor group. All standard editor group attributes are supported (see
	&lt;q ref=&quot;core.env:KitEditors!EDITOR_GROUP&quot;&gt;EDITOR_GROUP&lt;/q&gt; for details). Use the 'priority' attribute to control the order of groups in the editor.
&lt;/div&gt;
&lt;pre&gt;
&lt;i&gt;group-tag&lt;/i&gt;:
   &amp;lt;group &lt;i&gt;group-attributes...&lt;/i&gt;&amp;gt;
      &lt;i&gt;item-tag&lt;/i&gt;&lt;sub&gt;many&lt;/sub&gt;
   &amp;lt;/group&amp;gt;
&lt;/pre&gt;

&lt;div class=&quot;INSET&quot;&gt;
	&lt;b&gt;&amp;lt;item&amp;gt; inner tag&lt;/b&gt;&lt;br/&gt;
	Defines a editor item. All standard editor item types and attributes are supported (see
	&lt;q ref=&quot;core.env:KitEditors!EDITOR_ELEM&quot;&gt;EDITOR_ELEM&lt;/q&gt; for details). Use the 'priority' attribute to control the order of items in the group.
&lt;/div&gt;
&lt;pre&gt;
&lt;i&gt;item-tag&lt;/i&gt;:
   &amp;lt;&lt;i&gt;itemType&lt;/i&gt; &lt;i&gt;item-attributes...&lt;/i&gt;/&amp;gt;
&lt;/pre&gt;
&lt;div class=&quot;INSET&quot;&gt;
	A special 'class' attribute is also provided as a shortcut for creating editor items based on class metadata.
&lt;/div&gt;

&lt;h2&gt;&amp;lt;appendToGroup&amp;gt; tag&lt;/h2&gt;
Appends one or more editor items to an existing editor group.
&lt;pre&gt;
&lt;i&gt;appendToGroup-tag&lt;/i&gt;:
   &amp;lt;appendToGroup id=&quot;&lt;i&gt;groupId&lt;/i&gt;&quot;&amp;gt;
      &lt;i&gt;item-tag&lt;/i&gt;&lt;sub&gt;many&lt;/sub&gt;
   &amp;lt;/appendToGroup&amp;gt;

&lt;i&gt;item-tag&lt;/i&gt;:
   &amp;lt;&lt;i&gt;itemType&lt;/i&gt; &lt;i&gt;item-attributes...&lt;/i&gt;/&amp;gt;
&lt;/pre&gt;

&lt;h2&gt;&amp;lt;remove&amp;gt; tag&lt;/h2&gt;
Removes a specified editor item / group.
&lt;pre&gt;
&lt;i&gt;remove-tag&lt;/i&gt;:&lt;sub&gt;one of&lt;/sub&gt;
   &amp;lt;remove item=&quot;&lt;i&gt;itemId&lt;/i&gt;&quot;/&amp;gt;
   &amp;lt;remove group=&quot;&lt;i&gt;groupId&lt;/i&gt;&quot;/&amp;gt;
&lt;/pre&gt;

&lt;h2&gt;&amp;lt;clear&amp;gt; tag&lt;/h2&gt;
Clears a specified editor group. If the group identifier is omitted, then the entire editor is cleared.
&lt;pre&gt;
&lt;i&gt;clear-tag&lt;/i&gt;:&lt;sub&gt;one of&lt;/sub&gt;
   &amp;lt;clear group=&quot;&lt;i&gt;groupId&lt;/i&gt;&quot;/&amp;gt;
   &amp;lt;clear/&amp;gt;
&lt;/pre&gt;

&lt;h2&gt;Example&lt;/h2&gt;
&lt;pre&gt;
&amp;lt;extend rule=&quot;definePalette&quot;&amp;gt;
   &amp;lt;constraint&amp;gt;(unit isa gml2:Module) and (board isa svg:ZDrawing)&amp;lt;/constraint&amp;gt;
   &amp;lt;comments&amp;gt;[Components]&amp;lt;/comments&amp;gt;
   &amp;lt;append&amp;gt;
      &amp;lt;group id=&quot;COMPONENTS&quot; title=&quot;Components&quot; toggle=&quot;on&quot;&amp;gt;
         &amp;lt;item class=&quot;gml2:Scenario&quot;/&amp;gt;
         &amp;lt;item class=&quot;gml2:Service&quot;/&amp;gt;
         &amp;lt;item class=&quot;gml2:Process&quot;/&amp;gt;
         &amp;lt;item class=&quot;gml2:Module&quot;/&amp;gt;
      &amp;lt;/group&amp;gt;
   &amp;lt;/append&amp;gt;
&amp;lt;/extend&amp;gt;
&lt;/pre&gt;</Remarks><Copyright>(c) SAP AG 2003-2006. All rights reserved.</Copyright>
<Topics>
</Topics>
</Topic>