eclipse相关的杂项(图标,获得源码,定制,启动选项等)

eclipse中的Application = Plugins + Platform

IDE = PDE + RCP

eclipse icon:
http://eclipse-icons.i24.cc/
http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.ui/icons/full/

how to get eclipse source:
http://wiki.eclipse.org/CVS_Howto

how to brand eclipse:
http://www.eclipse.org/articles/Article-Branding/branding-your-
application.html#product_branding

http://sourceforge.net/apps/trac/cs-studio/wiki/IntroPages
http://www.eclipse.org/eclipse/platform-ua/proposals/shared-intro/shared-
intro.htm

eclipse start option:

http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-
options.html

Kindle 3截屏

kindle 3 catch screen
先按下键盘键,然后按住菜单键并保持5秒钟,等到屏幕闪一下,就已经将当前屏幕保存为screen_shot-*.gif存在documents文件夹下。
或者:alt + shift + G = screenshot

如何通过svn给google code上传source

1. 首先在google code上建立自己的project,在建立工程的时候,会让你选择管理source的工具(svn,git等),这里悬着svn;

2.
在Download页可以看到自己工程的svn地址,例如我的eclipsealarm工程的地址是:https://eclipsealarm.googlecode.com/svn/trunk/,它的旁边有一个

generate password按钮,点击生成password,记住它;

3. 在windows本机新建一个自己工程的目录,右键出现的check
out按钮,输出自己工程的svn地址,点击确定,会提示你输入用户名和密码,输入即可。

refs: http://devwatch.wordpress.com/2008/10/25/how-to-access-google-code-
svn/

定制eclipse的about对话框

如何将自己plugins的图标放到eclipse的about dialog中去:
1. 新建一个feature工程,然后将你的plugins加到其中去;
2. 新建一个工程,在该工程中创建about.ini,自己的icon和about.html等文件,并将它们加入到build.properties;
或者将about.ini,自己的icon和about.html等文件放到自己的plugin根目录下,并将它们加入到build.properties;
然后在feature工程中打开feature.xml文件,在Overview tab页的Branding Plug-in:中选择刚才的plugin工程;
3. 建立一个site工程,将第一步建立的feature工程加入该site中,Build All;
4. 最后通过Update Manager,指定该site,然后更新,就可以了。

refs: http://www.ibm.com/developerworks/opensource/library/os-ecfeat/

site,feature和plugins:
site:一个site可以包含多个feature;可以通过eclipse的Update Manager来进行管理所有的plugins;
feature:一个feature可以包含多个plugins
plugins:实现具体的功能;

deploy eclipse plugin

deploy eclipse plugin:
1. Left click you plugin project, select “Export…”;
2. In Select page, select “Deployable plug-ins and fragments”, click Next;
3. Choose the directory which you want to save your plug-ins, clicn Finish;
4. In your directory will create a dirctory which name is plugins, and your
plugins is in this directory;
5. copy generated jar file to eclipse/plugins dictory, it should work, if
not, use eclipse -clean

bash中的>& <&

bash中的>& <&一直不知道是什么意思,所以查了一下,

[n]word 默认n为1
[n]>|word 默认n为1 noclobber选项有关,直接例子就明白它的用处了
[n]>>word 默认n为1

cmd > file 2>&1 把标准错误重定向到标准输出,再重定向到file,即stderr和stdout都被输出到file中
cmd &> file 功能与上一个相同,更为简便的写法。
cmd >& file 功能仍与上一个相同。
cmd > f1 2>f2 把stdout重定向到f1,而把stderr重定向到f2

参见:
http://linux-
wiki.cn/wiki/Bash%E7%9A%84%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA%E9%87%8D%E5%AE%9A%E5%90%91
http://www.igigo.net/archives/79

How selection changed when select difference part in eclipse

One Part One Site, One Site One SelectionProvider, When you switch between
difference views or editors, the Part changed, so the SelectionProvider
changed also.
In WorkbenchPage class:
private PageSelectionService selectionService = new
PageSelectionService(this);
private WorkbenchPagePartList partList = new
WorkbenchPagePartList(selectionService); // selectionService construct
relation with partList

method: private void setActivePart(IWorkbenchPart newPart)

partList.setActivePart(partref); //when select difference parts, it will
update selectionService, at some time, PropertySheet will update too.

In WorkbenchPagePartList class, fireActivePartChanged method will do the
real things:
protected void fireActivePartChanged(IWorkbenchPartReference oldRef,
IWorkbenchPartReference newRef) {
partService.setActivePart(newRef);

IWorkbenchPart realPart = newRef == null? null : newRef.getPart(false);
selectionService.setActivePart(realPart); //this also changed selectionService
in WorkbenchPage class.
}

Last, the selectionService in WorkbenchPage and selectionService in partList
is same .


http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html