在 3.6 中,此扩展点已从 org.eclipse.pde.ui 移至 org.eclipse.pde.launching。但是,其限定名和可视性保持不变。
此扩展点用于注册新的 OSGi 框架。每个框架都与一个启动程序代表相关联。当在 OSGi 框架启动配置中选择该 OSGi 框架时,将调用该启动程序代表。
已注册的 OSGi 框架将显示在可用于设置缺省框架的插件开发 > OSGi 框架首选项页上。
<!ELEMENT extension (framework+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT framework EMPTY>
<!ATTLIST framework
id CDATA #REQUIRED
name CDATA #REQUIRED
launcherDelegate CDATA #REQUIRED
initializer CDATA #IMPLIED
>org.eclipse.pde.launcher.AbstractPDELaunchConfiguration 的 Java 类的标准名称。org.eclipse.pde.launcher.OSGiLaunchConfigurationInitializer 的 Java 类的标准名称。如果未指定,那么会实例化缺省初始化程序
org.eclipse.pde.launcher.OSGiLaunchConfigurationInitializer。以下是此扩展点的示例:
<extension point="org.eclipse.pde.launching.osgiFrameworks"> <framework launcherDelegate="org.eclipse.pde.launcher.EquinoxLaunchConfiguration" id="org.eclipse.pde.ui.EquinoxFramework" name="%Equinox.shortcut.label" initializer="org.eclipse.pde.internal.launcher.EquinoxInitializer"/> </extension>
属性 launcherDelegate 的值必须是扩展
org.eclipse.pde.launcher.AbstractPDELaunchConfiguration 的 Java 类的标准名称。如果启动程序要提供自己的源查找顺序,那么应该覆盖 setDefaultSourceLocator 方法。
属性 initializer 的值必须是扩展
org.eclipse.launcher.OSGiLaunchConfigurationInitializer 的 Java 类的标准名称。
PDE 提供了用于启动 Equinox 框架的 Equinox OSGi 框架扩展。
Copyright © 2006, 2010 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.