启动快捷方式

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

起始版本:
3.3

描述:

此扩展点用于在 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)

>


示例:

以下是此扩展点的示例:


   <extension
         point="org.eclipse.pde.ui.launchShortcuts">
<shortcut
            id="org.eclipse.pde.ui.runtimeWorkbenchShortcut"
            label="Launch an Eclipse Runtime" 
            mode="run"
            osgi="false"/>
   </extension>

API 信息:

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.