Page 1 of 1

Visibility of shortcut keys inside Options->Menu Shortcut Ke

Posted: Mon Jan 06, 2014 1:56 pm
by HerbertKoch
Hello,

Regarding to the workspace plugin example, you have developed some actions (Check Out, Check In, Surround with…). I can add a shortcut key for each JMenuItem entry inside src and recompile the example which works fine, but the actions are not shown by the Options->Menu Shortcut Keys preferences window.

How is it possible to register the plugin actions to be able to view/edit the shortcut keys inside the Menu Shortcut Keys preferences window?



Regards
Herbert Koch

Re: Visibility of shortcut keys inside Options->Menu Shortcu

Posted: Mon Jan 06, 2014 4:02 pm
by Radu
Hi Herbert,

Sorry, but we do not have API to allow you to register additional shortcuts in the Menu Shortcut Keys preferences page. I will add an improvement request for a future version.

Starting with Oxygen 15.0 there is a plugin extension which can be used to contribute custom preference pages from a plugin:

http://www.oxygenxml.com/doc/ug-editor/ ... lugin.html

So you could create your own preferences page with plugin-specific shortcut keys and save them in Oxygen's persistent properties using the options storage API:

ro.sync.exml.workspace.api.PluginWorkspace.getOptionsStorage()

Then from the Workspace Access plugin side you could add an option listener for those specific saved option keys and update your menu item key strokes to reflect the changes.

Regards,
Radu

Re: Visibility of shortcut keys inside Options->Menu Shortcu

Posted: Mon Jan 06, 2014 4:22 pm
by HerbertKoch
OK, thanks a lot.

at the appropriate time I will give it a try.

Regards
Herbert Koch