contextmenu - Eclipse Editor plug-in key binding not shown in menu for command -


i have key binding triggers command in custom eclipse editor plug-in:

  <key         commandid="my.plugin.ui.mycommand"         contextid="my.plugin.ui.mycontext"         schemeid="org.eclipse.ui.defaultacceleratorconfiguration"         sequence="m1+m2+o">   </key> 

i using newly defined context mycontext able overwrite existing key binding organizing imports. mycontext child context of org.eclipse.ui.contexts.window.

when creating menu entry command, keyboard shortcut not shown next label because context binding not org.eclipse.ui.contexts.window child.

the desired presentation of default binding when right-clicking .java files:

organize imports ____________ ctrl+shift+o

is there way show bindings custom contexts?

did try activate context in view's create part control method.

platformui.getworkbench().getdisplay().asyncexec(new runnable() {         @override         public void run() {              platformui.getworkbench().getservice(icontextservice.class).activatecontext("custom.context.id");         }     }); 

Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -