1 <?xml version='1.0' encoding='UTF-8'?>
\r
2 <!-- Schema file written by PDE -->
\r
3 <schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">
\r
6 <meta.schema plugin="org.simantics.ui" id="toolbarCommand" name="toolbarCommand"/>
\r
9 Binds commands to editor tool bar, similarly to org.eclipse.ui.menus that binds commands to menus (and toolbars).
\r
11 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
13 The editor must use org.simantics.ui.toolbar.ToolbarContributor as a contributorClass, and "toolbar" paramater pointing to used toolbar ID.
\r
16 org.simantics.ui.toolbar.ToolbarContributor:toolbar=org.simantics.kcleco.ui.diagramToolbar
\r
18 Toggle buttons must use command state "org.eclipse.ui.commands.toggleState".
\r
19 Radio and combo buttons must use state "org.eclipse.ui.commands.radioState".
\r
20 It's recommended to set state persistence off for the commands.
\r
23 TODO: investigate, if the mechanism could be used with menus aswell.
\r
27 <element name="extension">
\r
35 <element ref="command" minOccurs="0" maxOccurs="unbounded"/>
\r
37 <attribute name="point" type="string" use="required">
\r
44 <attribute name="id" type="string">
\r
51 <attribute name="name" type="string">
\r
57 <meta.attribute translatable="true"/>
\r
64 <element name="command">
\r
66 <attribute name="commandId" type="string" use="required">
\r
73 <attribute name="toolbarId" type="string" use="required">
\r
80 <attribute name="name" type="string" use="required">
\r
87 <attribute name="type" use="required">
\r
94 <restriction base="string">
\r
95 <enumeration value="push">
\r
97 <enumeration value="toggle">
\r
99 <enumeration value="radio">
\r
101 <enumeration value="combo">
\r
106 <attribute name="value" type="string">
\r
109 Used with radio buttons.
\r
113 <attribute name="image" type="string">
\r
119 <meta.attribute kind="resource"/>
\r
128 <meta.section type="since"/>
\r
131 [Enter the first release in which this extension point appears.]
\r
137 <meta.section type="examples"/>
\r
140 [Enter extension point usage example here.]
\r
146 <meta.section type="apiinfo"/>
\r
149 [Enter API information here.]
\r
155 <meta.section type="implementation"/>
\r
158 [Enter information about supplied implementation of this extension point.]
\r