]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/schema/toolbarCommand.exsd
Sync git svn branch with SVN repository r33198.
[simantics/platform.git] / bundles / org.simantics.ui / schema / toolbarCommand.exsd
index 52d1dd0a37f8c8d371958e6a7dd63884a10fbabb..cace7a863d5d92d41c1bfc506f6ff5eb38a9b84a 100644 (file)
 The difference is, that this system tracks state of the commands spearately for each editor, and automatically updates toggle- and radio buttons, when focus changes.\r
 \r
 The editor must use org.simantics.ui.toolbar.ToolbarContributor as  a contributorClass, and "toolbar" paramater pointing to used toolbar ID.\r
+Optional "hide=true" parameter allows hiding (hide by default)the toolbar when the editor is closed.\r
 \r
 Example:\r
-org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.kcleco.ui.diagramToolbar\r
+org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.kcleco.ui.diagramToolbar;hide=true\r
 \r
 Toggle buttons must use command state "org.eclipse.ui.commands.toggleState".\r
 Radio and combo buttons must use  state "org.eclipse.ui.commands.radioState".\r
@@ -63,6 +64,9 @@ TODO: investigate, if the mechanism could be used with menus aswell.
 \r
    <element name="command">\r
       <complexType>\r
+         <choice minOccurs="0" maxOccurs="unbounded">\r
+            <element ref="parameter"/>\r
+         </choice>\r
          <attribute name="commandId" type="string" use="required">\r
             <annotation>\r
                <documentation>\r
@@ -123,6 +127,25 @@ TODO: investigate, if the mechanism could be used with menus aswell.
       </complexType>\r
    </element>\r
 \r
+   <element name="parameter">\r
+      <complexType>\r
+         <attribute name="name" type="string" use="required">\r
+            <annotation>\r
+               <documentation>\r
+                  \r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+         <attribute name="value" type="string" use="required">\r
+            <annotation>\r
+               <documentation>\r
+                  \r
+               </documentation>\r
+            </annotation>\r
+         </attribute>\r
+      </complexType>\r
+   </element>\r
+\r
    <annotation>\r
       <appInfo>\r
          <meta.section type="since"/>\r