|
| Re: How to associate keyboard shortcuts with custom features? [message #1100616 is a reply to message #1099314] |
Tue, 03 September 2013 06:46  |
Felix Velasco Messages: 36 Registered: July 2009 |
Member |
|
|
Yes, you can.
See org.eclipse.graphiti.testtool.sketch plug-in for an example.
In the plugin.xml the key binding is created to the org.eclipse.graphiti.ui.featureExecutionCommand commandId, and in SketchToolBehavior#getCommandFeature, the custom feature to execute is selected. The hint parameter let's you select the specific feature so you can use different bindings for different features.
Since this approach uses the command infrastructure, it can be used for key bindings, menu entries, toolbar buttons, etc...
|
|
|
Powered by
FUDForum. Page generated in 0.01538 seconds