Dissect Eclipse Plugin Framework (7)

对于一个良好的插件平台来说,仅有一个良好的插件架构是不够的,还需要有非常方便易用的插件开发环境。Eclipse的PDE就是这样的产品,它能够很大程度帮助程序员开发插件,极大降低其它人“participation”的难度 :-)。

相比之下,Netbeans就没有这样的插件开发环境(Netbeans中,插件斗叫做模块 - "Module"),因此,开发插件还是一件很麻烦的事情,这也就造成了其他人“participation”的困难。

基本上就是这样,Eclipse2.1的插件结构真的非常优秀,看到那些代码的时候更佩服最初设计者的想法。Eclipse2.1 Plugin Framework也有一些缺点,比如不能Load/Unload on the fly(动态加载/卸载),需要重启Eclipse等等。

在Eclipse3.0之后,Eclipse决定遵循OSGi的标准来重构其插件机制,拥抱标准,总是一件美好的事情。

最后强烈推荐 "Contributing to Eclipse",由Erich Gamma、Kent Beck执笔,值得一读。

Popularity: 25%

Related entries:

2 Responses to “Dissect Eclipse Plugin Framework (7)”

  1. d9169037 Says:

    事實上, NetBeans 5.0 已經有這麼一個工具來開發 modules 了.

  2. Meng Yan Says:

    Thanks d9169037

    Netbeans 5.0 Beta中确实包含了对Module开发的支持,可以看看下面这个链接,不过由于我还没用,具体效果如何还待评估 :-)

    http://www.netbeans.org/community/releases/50/index.html#creating

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post | TrackBack URI

 

Creative Commons License
This work is licensed under a Creative Commons License.

爱情像鲜花,它从不开放,欲望像野草,它疯狂的生长