X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.ui%2Fschema%2FtoolbarCommand.exsd;h=a6ea3a5c11b450334bdf94d644205ee03aa5ca52;hb=3e877b48594c98cff85f4db64964f86fe14c0f03;hp=cace7a863d5d92d41c1bfc506f6ff5eb38a9b84a;hpb=984899c24693dc6179f72bbbedad1c8d2c37fadd;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.ui/schema/toolbarCommand.exsd b/bundles/org.simantics.ui/schema/toolbarCommand.exsd index cace7a863..a6ea3a5c1 100644 --- a/bundles/org.simantics.ui/schema/toolbarCommand.exsd +++ b/bundles/org.simantics.ui/schema/toolbarCommand.exsd @@ -1,186 +1,186 @@ - - - - - - - - - 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.] - - - - - + + + + + + + + + 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.] + + + + +