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.
Used with radio buttons.
[Enter the first release in which this extension point appears.]
[Enter extension point usage example here.]
[Enter API information here.]
[Enter information about supplied implementation of this extension point.]