此扩展点用于在 PDE 编辑器中注册启动快捷方式。启动快捷方式将出现在插件清单编辑器的“概述”页上的“测试”部分中。这允许客户机显示在它们的定制启动配置的编辑器快捷方式中,或者提供现有 Eclipse 应用程序和 OSGi 框架启动配置的概要分析方式的快捷方式。
<!ELEMENT extension (shortcut+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT shortcut EMPTY>
<!ATTLIST shortcut
id CDATA #REQUIRED
label CDATA #REQUIRED
mode (run|debug|profile)
osgi (true | false)
projectSpecific (true | false)
>org.eclipse.debug.ui.launchShortcuts 扩展的标识。run、debug 和 profile。true 时,此启动快捷方式仅显示在它通过 IBundleProjectDescription 与其关联的项目中。未指定时,此值假定为 false。3.6 发行版中添加了此属性以支持清单编辑器中的定制启动快捷方式。以下是此扩展点的示例:
<extension point="org.eclipse.pde.ui.launchShortcuts"> <shortcut id="org.eclipse.pde.ui.runtimeWorkbenchShortcut" label="Launch an Eclipse Runtime" mode="run" osgi="false"/> </extension>
id 属性值必须是已定义的 org.eclipse.debug.ui.launchShortcuts
扩展的标识。系统会将相匹配的 org.eclipse.debug.ui.launchShortcuts
扩展中指定的类实例化,并且将调用它的 launch(IEditorPart, String) 以启动。
mode 属性值必须是 run、debug 或 profile。
PDE 提供了用于启动 Eclipse 应用程序和 OSGi 框架的快捷方式扩展。
Copyright © 2007 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html.