Visibility of shortcut keys inside Options->Menu Shortcut Ke

Oxygen general issues.
HerbertKoch
Posts: 2
Joined: Thu Jan 02, 2014 6:45 pm

Visibility of shortcut keys inside Options->Menu Shortcut Ke

Post 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
Radu
Posts: 9445
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
HerbertKoch
Posts: 2
Joined: Thu Jan 02, 2014 6:45 pm

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

Post by HerbertKoch »

OK, thanks a lot.

at the appropriate time I will give it a try.

Regards
Herbert Koch
Post Reply