Target PlatForm 插件的运行平台.
Eclipse version 指的是Eclipse UI 插件这样的运行方式.
an OSGI framework 指的是运行于OSGI下的,非UI的插件.
选项:
Equinox 指的是,使用Equinox(Eclipse的OSGI实现)
选项:
standard 指的是,使用标准的OSGI实现
下面具体说明他们的差别:
1. 自动生成代码的区别:
选择
Eclipse version, 那么默认生成的Activator就是继承与AbstractUIPlugin.
public class Activator extends AbstractUIPlugin {
public static final String PLUGIN_ID = "lggege.eclipse"; // The plug-in ID
private static Activator plugin; // The shared instance
public Activator() { }
/*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
/*
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
public static Activator getDefault() {
return plugin;
}
}
注: AbstractUIPlugin 实现了BundleActivator接口.
选择
Equinox或者
standard, 那么默认的Activator就是实现了BundleActivator接口.
public class Activator implements BundleActivator {
/*
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
}
/*
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
}
}
看出一定的区别了吧, 基于Ecliopse平台和OSGI平台(Equonix和Standard), 最终都是基于OSGI. 只是Ecliopse平台还是实现的OSGI.
2. 对于IDE的区别:
Eclipse version,打开的MANIFEST.MF的编辑器, 它有Extensions 和 Extension Points这两个设置页面.
Equinox或者
standard,开的MANIFEST.MF的编辑器, 是没有Extensions 和 Extension Points这两个设置页面.
这也说明一个区别: Ecliopse平台不仅仅实现了OSGI, 同时, 还使用了自己的Plugin机制, 也就是Extensions和Extensions Points机制.
也就是Eclipse并不是一个完全的OSGI, 而是一个OSGI 与 自己的Plugin机制的结合体.
Equinox和
standard对于IDE没有什么区别, 也许只是提供一个功能,给你日后选择一个具体的OSGI平台留下的扩展吧.
后记:
发现Eclipse的Help里面有一些相关的信息:
引用
Eclipse vs. OSGi Framework
The Eclipse vs. OSGi framework choice acts as pre-filter to determine what initial pages will be visible in the plug-in manifest editor when it opens.
Since the extension registry is Eclipse-specific content, the Extensions and Extension Points pages of the manifest editor are visible only when the Eclipse version option is chosen.
Equinox vs. Standard
When targeting an OSGi framework, you have a choice between the Equinox and standard frameworks. The Equinox OSGi framework augments the MANIFEST.MF content with Eclipse-specific headers (e.g. Eclipse-LazyStart) and directives (e.g. x-friends). If you do not wish to use these Eclipse-specific headers and attributes, then choose the standard option.
可参见:
http://www.ibm.com/developerworks/cn/opensource/os-ecl-osgi/index.html
- 描述: Target platform
- 大小: 10.4 KB
分享到:
相关推荐
Fat Jar Eclipse Plug-In教程. 一、 目录 1 二、 Fat Jar Eclipse Plug-In教程 2 1、 安装: 2 2、 删除: 2 3、 样例: 2 Step 1: 新建一个 Java Project "demolib" 2 Step 2:使用Fat Jar 插件生成JAR包 3 Step 3:...
Producing a commercial-quality plug-in means going above and beyond the minimal requirements needed to integrate with Eclipse. It means attending to all those details that contribute to the “fit and ...
指导Eclipse Plug-in初学者开发的开发思路,操作方法和案例
eclipse abap plug-in
eclipse RCP Plug-in开发自学教程 , 只要java基础好,自学没问题的。。。
RCP/Plug-in 开发自学教程 salever@126.com - 4 - 6 编辑器 ..................................................................................................................................................
Genymotion插件eclipse plug-in
Eclipse Plug-in Development Beginner s Guide
可以看这里的介绍:http://www.amazon.cn/Eclipse-4-Plug-in-Development-by-Example-Beginner-s-Guide-Blewitt-Dr-Alex/dp/B00DJ4TRUS/ref=sr_1_1?ie=UTF8&qid=1453387917&sr=8-1&keywords=Eclipse+4+Plug-...
"Eclipse Plugin Development by Example: Beginner's Guide" takes the reader through the full journey of plug-in development, starting with an introduction to Eclipse plug-ins, continued through ...
JD-Eclipse is a plug-in for the Eclipse platform. It allows you to display all the Java sources during your debugging process, even if you do not have them all. Installation Download JD-Eclipse ZIP ...
从服务器把Eclipse Checkstyle Plug-in 5.4.1下下来了,这样大家就不用为网络安装连接不上服务器而苦恼了。瓦咔咔
Eclipse Plug-In插件开发.doc
eclipse plug-in/rcp 开发方法详解 pdf 第一部分
eclipse的插件,用于反编译class文件
eclipse plug-in/rcp 开发方法详解第三部分 随书光盘
docjar-eclipse-3.3-plug-in.zip可在在线看源码
Axis eclipse plug-in(代码生成工具和打包工具),里面有两个包,自己做的时候下载的,希望对大家有用~~
Eclipse Plug-in Development Beginners Guide(2nd) 英文mobi 第2版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除