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
\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
</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