如何为快捷菜单添加类似于JDT中“重构”上下文菜单的键绑定?
我想为我的eclipse插件添加一个快捷方式,以显示具有现有绑定的快捷菜单。它应该像JDT中的“重构”快捷菜单一样工作。 JDT中快捷菜单的快捷方式: JDT快速菜单: 我已经添加了绑定和命令,但似乎缺少一些东西。“删除某物”条目也适用于上下文菜单,只是缺少快捷菜单的快捷方式。有人怎么做吗? <extension point="org.eclipse.ui.bindings"> <key commandId="myplugin.refactoring.actions.DeleteSomething" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+5"> </key> <key commandId="myplugin.refactoring.quickMenu" schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" sequence="M1+9"> </key> <extension point="org.eclipse.ui.commands"> <command categoryId="myplugin.category.refactor" description="Delete Something" id="myplugin.refactoring.actions.DeleteSomething" name="Extract Method"> </command> <command categoryId="myplugin.category.refactor" id="myplugin.refactoring.quickMenu" name="Show Refactor Quick Menu"> </command> <category id="myplugin.category.refactor" name="Refactor"> </category>