X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=inline;f=bundles%2Forg.simantics.ui%2Fschema%2FtoolbarCommand.exsd;h=cace7a863d5d92d41c1bfc506f6ff5eb38a9b84a;hb=8d60995e2ff936c9a360c7fdb69cc4ed44666bc5;hp=52d1dd0a37f8c8d371958e6a7dd63884a10fbabb;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git
diff --git a/bundles/org.simantics.ui/schema/toolbarCommand.exsd b/bundles/org.simantics.ui/schema/toolbarCommand.exsd
index 52d1dd0a3..cace7a863 100644
--- a/bundles/org.simantics.ui/schema/toolbarCommand.exsd
+++ b/bundles/org.simantics.ui/schema/toolbarCommand.exsd
@@ -11,9 +11,10 @@
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
+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".
@@ -63,6 +64,9 @@ TODO: investigate, if the mechanism could be used with menus aswell.
+
+
+
@@ -123,6 +127,25 @@ TODO: investigate, if the mechanism could be used with menus aswell.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+