Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 添加keyevent以切换IPageLayout下的ViewPart_Java_User Interface_Swt_Eclipse Rcp - Fatal编程技术网

Java 添加keyevent以切换IPageLayout下的ViewPart

Java 添加keyevent以切换IPageLayout下的ViewPart,java,user-interface,swt,eclipse-rcp,Java,User Interface,Swt,Eclipse Rcp,如何在不同的viewpart上分配切换焦点的键 示例:(按“SWT.F7”聚焦于viewpartA,按“SWT.F8”聚焦于viewpartB) 您可以使用以下键绑定。仔细阅读序列文档-这有点棘手:-) 下面的值属性是目标视图的ID <extension point="org.eclipse.ui.bindings"> <key commandId="org.eclipse.ui.views.showView" scheme

如何在不同的viewpart上分配切换焦点的键

示例:(按“SWT.F7”聚焦于viewpartA,按“SWT.F8”聚焦于viewpartB)


您可以使用以下键绑定。仔细阅读序列文档-这有点棘手:-)

下面的
属性是目标视图的ID

<extension
      point="org.eclipse.ui.bindings">
   <key
         commandId="org.eclipse.ui.views.showView"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="F6">
      <parameter
            id="org.eclipse.ui.views.showView.viewId"
            value="com.rcpcompany.so.ed.view">
      </parameter>
   </key>
   <key
         commandId="org.eclipse.ui.views.showView"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="SHIFT+F6">
      <parameter
            id="org.eclipse.ui.views.showView.viewId"
            value="com.rcpcompany.so.ed.view1">
      </parameter>
   </key>
</extension>

记住接受或投票选择答案:-)
<extension
      point="org.eclipse.ui.bindings">
   <key
         commandId="org.eclipse.ui.views.showView"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="F6">
      <parameter
            id="org.eclipse.ui.views.showView.viewId"
            value="com.rcpcompany.so.ed.view">
      </parameter>
   </key>
   <key
         commandId="org.eclipse.ui.views.showView"
         schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
         sequence="SHIFT+F6">
      <parameter
            id="org.eclipse.ui.views.showView.viewId"
            value="com.rcpcompany.so.ed.view1">
      </parameter>
   </key>
</extension>