-<?xml version='1.0' encoding='UTF-8'?>\r
-<!-- Schema file written by PDE -->\r
-<schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">\r
-<annotation>\r
- <appInfo>\r
- <meta.schema plugin="org.simantics.ui" id="toolbarCommand" name="toolbarCommand"/>\r
- </appInfo>\r
- <documentation>\r
- Binds commands to editor tool bar, similarly to org.eclipse.ui.menus that binds commands to menus (and toolbars).\r
-\r
-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
-\r
-Example:\r
-org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.kcleco.ui.diagramToolbar\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
-It's recommended to set state persistence off for the commands. \r
-\r
-\r
-TODO: investigate, if the mechanism could be used with menus aswell.\r
- </documentation>\r
- </annotation>\r
-\r
- <element name="extension">\r
- <annotation>\r
- <appInfo>\r
- <meta.element />\r
- </appInfo>\r
- </annotation>\r
- <complexType>\r
- <sequence>\r
- <element ref="command" minOccurs="0" maxOccurs="unbounded"/>\r
- </sequence>\r
- <attribute name="point" type="string" use="required">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="id" type="string">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="name" type="string">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- <appInfo>\r
- <meta.attribute translatable="true"/>\r
- </appInfo>\r
- </annotation>\r
- </attribute>\r
- </complexType>\r
- </element>\r
-\r
- <element name="command">\r
- <complexType>\r
- <attribute name="commandId" type="string" use="required">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="toolbarId" type="string" use="required">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="name" type="string" use="required">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="type" use="required">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- </annotation>\r
- <simpleType>\r
- <restriction base="string">\r
- <enumeration value="push">\r
- </enumeration>\r
- <enumeration value="toggle">\r
- </enumeration>\r
- <enumeration value="radio">\r
- </enumeration>\r
- <enumeration value="combo">\r
- </enumeration>\r
- </restriction>\r
- </simpleType>\r
- </attribute>\r
- <attribute name="value" type="string">\r
- <annotation>\r
- <documentation>\r
- Used with radio buttons.\r
- </documentation>\r
- </annotation>\r
- </attribute>\r
- <attribute name="image" type="string">\r
- <annotation>\r
- <documentation>\r
- \r
- </documentation>\r
- <appInfo>\r
- <meta.attribute kind="resource"/>\r
- </appInfo>\r
- </annotation>\r
- </attribute>\r
- </complexType>\r
- </element>\r
-\r
- <annotation>\r
- <appInfo>\r
- <meta.section type="since"/>\r
- </appInfo>\r
- <documentation>\r
- [Enter the first release in which this extension point appears.]\r
- </documentation>\r
- </annotation>\r
-\r
- <annotation>\r
- <appInfo>\r
- <meta.section type="examples"/>\r
- </appInfo>\r
- <documentation>\r
- [Enter extension point usage example here.]\r
- </documentation>\r
- </annotation>\r
-\r
- <annotation>\r
- <appInfo>\r
- <meta.section type="apiinfo"/>\r
- </appInfo>\r
- <documentation>\r
- [Enter API information here.]\r
- </documentation>\r
- </annotation>\r
-\r
- <annotation>\r
- <appInfo>\r
- <meta.section type="implementation"/>\r
- </appInfo>\r
- <documentation>\r
- [Enter information about supplied implementation of this extension point.]\r
- </documentation>\r
- </annotation>\r
-\r
-\r
-</schema>\r
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+ <appInfo>
+ <meta.schema plugin="org.simantics.ui" id="toolbarCommand" name="toolbarCommand"/>
+ </appInfo>
+ <documentation>
+ Binds commands to editor tool bar, similarly to org.eclipse.ui.menus that binds commands to menus (and toolbars).
+
+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.
+
+The editor must use org.simantics.ui.toolbar.ToolbarContributor as a contributorClass, and "toolbar" paramater pointing to used toolbar ID.
+Optional "hide=true" parameter allows hiding (hide by default)the toolbar when the editor is closed.
+
+Example:
+org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.kcleco.ui.diagramToolbar;hide=true
+
+Toggle buttons must use command state "org.eclipse.ui.commands.toggleState".
+Radio and combo buttons must use state "org.eclipse.ui.commands.radioState".
+It's recommended to set state persistence off for the commands.
+
+
+TODO: investigate, if the mechanism could be used with menus aswell.
+ </documentation>
+ </annotation>
+
+ <element name="extension">
+ <annotation>
+ <appInfo>
+ <meta.element />
+ </appInfo>
+ </annotation>
+ <complexType>
+ <sequence>
+ <element ref="command" minOccurs="0" maxOccurs="unbounded"/>
+ </sequence>
+ <attribute name="point" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="id" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute translatable="true"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="command">
+ <complexType>
+ <choice minOccurs="0" maxOccurs="unbounded">
+ <element ref="parameter"/>
+ </choice>
+ <attribute name="commandId" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="toolbarId" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="type" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ <simpleType>
+ <restriction base="string">
+ <enumeration value="push">
+ </enumeration>
+ <enumeration value="toggle">
+ </enumeration>
+ <enumeration value="radio">
+ </enumeration>
+ <enumeration value="combo">
+ </enumeration>
+ </restriction>
+ </simpleType>
+ </attribute>
+ <attribute name="value" type="string">
+ <annotation>
+ <documentation>
+ Used with radio buttons.
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="image" type="string">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ <appInfo>
+ <meta.attribute kind="resource"/>
+ </appInfo>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <element name="parameter">
+ <complexType>
+ <attribute name="name" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ <attribute name="value" type="string" use="required">
+ <annotation>
+ <documentation>
+
+ </documentation>
+ </annotation>
+ </attribute>
+ </complexType>
+ </element>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="since"/>
+ </appInfo>
+ <documentation>
+ [Enter the first release in which this extension point appears.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="examples"/>
+ </appInfo>
+ <documentation>
+ [Enter extension point usage example here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="apiinfo"/>
+ </appInfo>
+ <documentation>
+ [Enter API information here.]
+ </documentation>
+ </annotation>
+
+ <annotation>
+ <appInfo>
+ <meta.section type="implementation"/>
+ </appInfo>
+ <documentation>
+ [Enter information about supplied implementation of this extension point.]
+ </documentation>
+ </annotation>
+
+
+</schema>