Eclipse rcp 将“显示问题”视图添加到RCP菜单,但隐藏键盘快捷键

Eclipse rcp 将“显示问题”视图添加到RCP菜单,但隐藏键盘快捷键,eclipse-rcp,Eclipse Rcp,我添加了一个命令,使用plugin.xml中的以下代码段向我的RCP应用程序显示problems视图 <command commandId="org.eclipse.ui.views.showView" label="Show Problems" style="push"> <parameter name="org.ecli

我添加了一个命令,使用plugin.xml中的以下代码段向我的RCP应用程序显示problems视图

        <command
              commandId="org.eclipse.ui.views.showView"
              label="Show Problems"
              style="push">
           <parameter
                 name="org.eclipse.ui.views.showView.viewId"
                 value="org.eclipse.ui.views.ProblemView">
           </parameter>
        </command>


那很好。但是,菜单项包含视图的键盘快捷键,我不希望它出现在那里。有什么方法可以控制它吗?

您可以尝试为命令编写一个具有空键序列的绑定:

<extension
         point="org.eclipse.ui.bindings">
      <key sequence=""
            commandId="org.eclipse.ui.views.showView"
            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"/>
</extension>


菜单项
您指的是命令吗?谢谢您的回答。但是它似乎不起作用:(你能告诉我你的快捷方式是什么样子的吗?Alt+Shift+Q,X。这是标准的Eclipse快捷方式。我根本没有改变它。