标识符:org.eclipse.debug.ui.launchShortcuts
描述:此扩展点对与选择相关的启动提供了支持。扩展注册一种快捷方式(它出现在运行和/或调试级联菜单中),以启动当前工作台选择或活动编辑器。
配置标记:
<!ELEMENT shortcut (perspective)*> <!ATTLIST shortcut
id CDATA #REQUIRED
modes CDATA #REQUIRED
class CDATA #REQUIRED
label CDATA #REQUIRED
icon CDATA #REQUIRED
id
指定此启动快捷方式的唯一标识符。modes
指定此快捷方式支持的用逗号隔开的方式列表。class
指定实现 org.eclipse.debug.ui.ILaunchShortcut
的类的全限定名。label
指定用来显示此快捷方式的可转换标号。icon
指定用来呈示此快捷方式的图像的插件相对路径。<!ELEMENT perspective> <!ATTLIST perspective
id CDATA #REQUIRED>
id
— 将出现此启动快捷方式的菜单快捷方式的透视图的唯一标识符示例:
以下是启动快捷方式扩展点的一个示例:
<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\example.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 类的全限定名。