启动快捷方式

标识:org.eclipse.debug.ui.launchShortcuts

描述:此扩展点对与选择相关的启动提供了支持。扩展注册一种快捷方式(它出现在运行和/或调试级联菜单中),以启动工作台选择或活动编辑器。

配置标记:

   <!ELEMENT extension (shortcut*)>

   <!ATTLIST extension
     point CDATA #REQUIRED
     id    CDATA #IMPLIED
     name  CDATA #IMPLIED
   >

   <!ELEMENT shortcut (perspective*)>

   <!ATTLIST shortcut
     id            CDATA #REQUIRED
     modes         CDATA #REQUIRED
     class         CDATA #REQUIRED
     label         CDATA #REQUIRED
     icon          CDATA #REQUIRED
     category      CDATA #IMPLIED
     helpContextId CDATA #IMPLIED
   >

   <!ELEMENT perspective EMPTY>

   <!ATTLIST perspective
     id CDATA #REQUIRED
   >

示例:以下是启动快捷方式扩展点的示例:

 <extension point="org.eclipse.debug.ui.launchShortcuts">
  <shortcut
     id="com.example.ExampleLaunchShortcutId"
     modes="run,debug"
     class="com.example.ExampleLaunchShortcutImpl"
     label="Example Launch Shortcut"
     icon="icons/examples.gif">
     <perspective id="org.eclipse.jdt.ui.JavaPerspective"/>
     <perspective id="org.eclipse.debug.ui.DebugPerspective"/>
  </shortcut>
   </extension> 

在上面的示例中,启动快捷方式将显示在 JavaPerspective 和 DebugPerspective 中标号为“Example Launch Shortcut”的运行和调试级联菜单中。

API 信息:属性 class 的值必须是实现接口 org.eclipse.debug.ui.ILaunchShortcut 的 Java 类的全限定名。

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.