Dec 24

很不错的一篇文章,繁体中文的:

http://blog.extremepattern.com/articles/2006/09/20/eclipse-and-osgi

Dec 13

IBM开发者网站上的这个教程不错:

http://www.ibm.com/developerworks/cn/edu/os-dw-os-eclipse-osgi.html?ca=drs-cn-0828

Dec 08
几个链接:
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm
Nov 26

eclipse最基本的单位是插件plug-in。比插件粒度更大的是feature,一个feature可以包含多个插件。粒度更大的是产品product。

如果需要使用软件更新、自动更新功能,你的RCP程序可能会需要最后转到feature组成,feature是更新时的基本安装单位(IU,Installable Unit)。

一个基本的应用,习惯上至少分成三个插件,核心代码core、界面代码UI、帮助文件help。比如JDT就分为jdt.core, jdt.ui, jdt.help等。

Nov 18

 

1.  简介
从eclipse项目编译20080305开始,更新管理器(Update Manager)被一个新的软件安装系统

取代了,也就是所谓的p2。

2. p2用户界面
和更新管理器比较起来,界面改变并不算太大,但是用户交互流程改变还是不少的。有兴趣

看它的用户界面,可以自己跑一下插件更新/安装,也可以访问网址
http://wiki.eclipse.org/Equinox_p2_Update_UI_Users_Guide

3. p2基础之目录结构
以前,用户一般直接把插件解压缩到plugins目录,在p2中如此原始的方法不再被支持,而是建议安装到dropins目录。插件分成两种:手动安装的、通过p2安装的。简单地说,手动安装的插件,可以手动删除;通过p2安装的插件,应该通过p2卸载。否则,可能会引起插件管理的混乱。

一个典型的目录结构是:
clipse/
    configuration/
        config.ini
    org.eclipse.equinox.simpleconfigurator/
        bundles.info
    dropins/
    features/
    p2/
    plugins/
    eclipse.exe
    eclipse.ini

其中bundles.info文件含有一个列表,列出了当前系统上所有安装的插件,对该文件的直接修改是不推荐的,除非是你真的需要hack它或只是测试一下玩。

新出现的目录dropins很重要,如果不想通过p2的UI安装插件,你可以像以前一样把插件扔进这个目录,而不是以前的plugins目录。p2会自动发现该目录中的新插件。

p2有一个新概念叫监视目录(watched directories),eclipse平台缺省的监视目录就是dropins。

dropins比较强大的是,插件可以扔到它的子目录中,或者直接扔传统的eclipse应用或扩展布局的目录。

插件安装操作,一般通过3种方式实现:使用p2界面、使用p2工具、或使用p2 API。

4. 使用以前的Update Manager
在Preferences中,通过General -> Capabilities -> "Classic Update"选项,可以启用以前的软件更新程序,它与p2可以共存。

5. 删除p2
假设你憎恨p2,那么可以很容易地删除它并回到Update Manager: http://wiki.eclipse.org/Equinox_p2_Removal

Nov 04

An good article for understanding so-called selection service in eclipse is here:

Eclipse Workbench: Using the Selection Service

Oct 08

A quick link here for my convenience:

http://www.vogella.de/articles/RichClientPlatform/article.html

Dec 12

花了些时间了解Android,觉得它挺有前途的。本来以为,是基于J2ME框架之上的一个东东,没有想到是一个完全的框架,有自己的虚拟机、Java ME实现、视图实现等等,基本上是另一个Java ME框架,但还加入更好的设计,比如类似MVC的视图View、Activity、Intent等设计,让程序的界面和逻辑可以松散耦合,程序也灵活很多。

另外有趣的一个东东是UI的设计,可以通过声明的方式(declarative)创建,通俗地说,就是编写XML文件来创建界面。前些天Marcel也提到这个特性,当时貌似没听清楚,不过倒是听听出了他对XML UI的看法,他说:有点类似于微软的XAML,在Vista中有用到;但是呢,最早用这个技术的是Firefox,Firefox就是使用XUL构建的;然后他就对微软发表了一点看法。:)

?另外一个我感兴趣的,可以看Android的架构,注意里面有它是基于linux系统的,还有libc,不知道将来能否使用C语言开发,^____^

Android Architecture

Nov 02

Microsoft has been competing with community, which makes?them seems very stupid.?Java has a comprehensive community, and they?host many high-quality open source projects. The Java ecosystem is so diverse that you can always find quick solutions, in additon to developing self-owned systems. Microsoft doesn’t have?much?intention to develop or support open source community of C#. Instead, they compete with community, or just harvest comunity endeavor. It’s really stupid because C# developers will lose posibility to having more high-quality choice in the future.

A?new example is?their anoucement of developing?Model 2, instead of supporting the open source MVC framework like?MonoRail. The community has been developing MonoRail?in recent years. In 2007 RC3 is realsed after a year development. This MVC framework is a good choice for developers who love flexible HTML and hate the WebForm model. Microsoft staff give very weak reasons for why not supporting existing projects.

Undoubtedly Microsoft is?and has been a great company. It doesn’t necessarily mean that a great company never does stupid things. However, companies in different sizes have different social influence. If a large company does stupid things, they are wasting social wealth and put their partners on high stake as well as themselves. Maybe their open-source strategy limits the advancement direction.

Some related commments:

Nov 02

由朋友介绍,给一家公司的Java开发人员,做了一个3天的培训,期望能让他们快速地了解和掌握.NET和C#开发。面对一帮做了5年或以上开发的大哥们,是很有压力的。上一次这么大压力,是几年前的事情,有位山东来的老教授,白发苍苍,讲授了很多年Turbo C 2.0,老骥伏枥志在千里的他与时俱进想学习C#,让我又钦佩又紧张。

几天课程讲下来,感觉还可以,也不枉那5天熬夜看的不少资料。另外,毕竟C#和Java相似的地方,还挺多的。对于一位Java开发者,或者对两种语言都感兴趣的朋友,应该对这篇文章非常感兴趣的:

Dare Obasanjo写的《C#与Java异同比较》(Comparison of Microsoft’s C# Programming Language to Sun Microsystems’ Java Programming Language)。