Eclipse SWT/JFace/RCP 学习资源

Eclipse.org 官方网站
www.eclipse.org
Eclipse官方网站;值得敬佩的是它对Eclipse的介绍真的很全面,从中不仅可以了解Eclipse的项目的组织、进展, 而且有很多的技术文章(比如介绍SWT就有一百多个Snippet让初学者快速掌握SWT编写技巧),它的CVS Repository可以让你随时关注项目的更新情况.

CVS repository
http://dev.eclipse.org/viewcvs/index.cgi/

Eclipse Rich Client Platform
http://www.eclipse.org/platform/index.html

eclipse.org/rcp

eclipse.org/community

IBM developerWorks search results
1900多篇IBM专家在eclipse方面的技术文章
http://www-106.ibm.com/search/search...searchScope=dW

Eclipse平台下进行C/C++开发
C/C++ development with the Eclipse Platform
http://www-128.ibm.com/developerwork...ecc/index.html

Weighing in on Java native compilation
http://www-106.ibm.com/developerwork.../j-native.html

专家访谈: Eclipse 不再由开发人员独享
http://www-900.ibm.com/developerWork...an/index.shtml

Eclipse 平台入门
http://www-900.ibm.com/developerWork...ov/index.shtml

J2SE 1.4.2 提供两种新的外观设计
http://www-900.ibm.com/developerWork...va/j-mer05273/

SWT:AWT和SWING的强大竞争者
http://www-900.ibm.com/developerWork...wt/index.shtml

Eclipse User Interface Guidelines
http://www.eclipse.org/articles/Arti.../Contents.html
Your First Plug-in
http://www.eclipse.org/articles/Arti...rstPlugin.html
Using Perspectives in the Eclipse UI
http://www.eclipse.org/articles/usin...veArticle.html

Creating an Eclipse View
http://www.eclipse.org/articles/view...wArticle2.html

Contributing Actions to the Eclipse Workbench
http://www.eclipse.org/articles/Arti...Workbench.html

Rich Client Tutorial Part 1
http://eclipse.org/articles/Article-...tutorial1.html
Rich Client Tutorial Part 2
http://eclipse.org/articles/Article-...tutorial2.html
Rich Client Tutorial Part 3
http://eclipse.org/articles/Article-...tutorial3.html

Branding Your Application
http://www.eclipse.org/articles/Arti...plication.html

在 Eclipse Workbench 之外使用 Eclipse GUI,第 1 部分:独立使用 JFace 和 SWT
http://www-900.ibm.com/developerWork...ava/os-ecgui1/
在 Eclipse Workbench 之外使用 Eclipse GUI,第 2 部分:使用 JFace 图像注册表
http://www-900.ibm.com/developerWork...i2/index.shtml
在 Eclipse Workbench 之外使用 Eclipse GUI,第 3 部分:添加操作、菜单和工具栏
http://www-900.ibm.com/developerWork...i3/index.shtml

JFace 开发向导
http://www-900.ibm.com/developerWork...fw/index.shtml
Creating JFace Wizards
http://www.eclipse.org/articles/Arti...rdArticle.html

开发 Eclipse 插件
http://www-900.ibm.com/developerWork...ug/index.shtml
驾驭 Eclipse 功能部件
http://www-900.ibm.com/developerWork...at/index.shtml
扩展 Eclipse 的 Java 开发工具
http://www-900.ibm.com/developerWork...dt/index.shtml

将基于 Swing 的开发工具插入 Eclipse 中
http://www-900.ibm.com/developerWork...ng/index.shtml
Responding to resource changes in the Eclipse workspace
http://www.eclipse.org/articles/Arti...ce-deltas.html

创建本机、跨平台 GUI 应用程序
http://www-900.ibm.com/developerWork...ui/index.shtml
创建本机的跨平台 GUI 应用程序(重述)
http://www-900.ibm.com/developerwork.../j-nativegui2/

Eclipse 插件
Eclipse User Interface Guidelines
http://www.eclipse.org/articles/Arti.../Contents.html

Your First Plug-in
http://www.eclipse.org/articles/Arti...rstPlugin.html

Using Perspectives in the Eclipse UI
http://www.eclipse.org/articles/usin...veArticle.html

Creating an Eclipse View
http://www.eclipse.org/articles/view...wArticle2.html

Contributing Actions to the Eclipse Workbench
http://www.eclipse.org/articles/Arti...Workbench.html

Rich Client Tutorial Part 1
http://eclipse.org/articles/Article-...tutorial1.html
Rich Client Tutorial Part 2
http://eclipse.org/articles/Article-...tutorial2.html
Rich Client Tutorial Part 3
http://eclipse.org/articles/Article-...tutorial3.html

Branding Your Application
http://www.eclipse.org/articles/Arti...plication.html

在 Eclipse Workbench 之外使用 Eclipse GUI,第 1 部分:独立使用 JFace 和 SWT
http://www-900.ibm.com/developerWork...ava/os-ecgui1/
在 Eclipse Workbench 之外使用 Eclipse GUI,第 2 部分:使用 JFace 图像注册表
http://www-900.ibm.com/developerWork...i2/index.shtml
在 Eclipse Workbench 之外使用 Eclipse GUI,第 3 部分:添加操作、菜单和工具栏
http://www-900.ibm.com/developerWork...i3/index.shtml

JFace 开发向导
http://www-900.ibm.com/developerWork...fw/index.shtml
Creating JFace Wizards
http://www.eclipse.org/articles/Arti...rdArticle.html

开发 Eclipse 插件
http://www-900.ibm.com/developerWork...ug/index.shtml
驾驭 Eclipse 功能部件
http://www-900.ibm.com/developerWork...at/index.shtml
扩展 Eclipse 的 Java 开发工具
http://www-900.ibm.com/developerWork...dt/index.shtml

将基于 Swing 的开发工具插入 Eclipse 中
http://www-900.ibm.com/developerWork...ng/index.shtml
Responding to resource changes in the Eclipse workspace
http://www.eclipse.org/articles/Arti...ce-deltas.html

创建本机、跨平台 GUI 应用程序
http://www-900.ibm.com/developerWork...ui/index.shtml
创建本机的跨平台 GUI 应用程序(重述)
http://www-900.ibm.com/developerwork.../j-nativegui2/

swt/jface
SWT Tips and Samples - Java + SWT でスタンドアローンアプリケーション开発
一个很不错的关与SWT学习的网站
http://cjasmin.fc2web.com/

一个法国的JFace网站!代码写的很清楚
http://www.eclipsetotale.com/article...ace/index.html

Eclipse Performance Tips
http://www.eclipsefaq.org/chris/tips/

EclipseCon
http://www.eclipsecon.org/

Eclipse Plugin Center
http://www.eclipseplugincentral.com/index.php
了解Eclipse插件必去的地方,每个插件都有相关的论坛,在这里你会知道什么是如鱼得水.

SWT-designer
http://www.swt-designer.com/.
本身是一个SWT GUI设计工具站点,有丰富的教程介绍SWT和教你使用SWT-designer方便的设计出SWT/JFace界面

http://sourceforge.net

eclipse Games
Eclipse Games
http://dev.eclipse.org/viewcvs/index...nal.html#games

This web site contains example SWT and JFace applications
http://eclipsewiki.swiki.net/2

This site contains some tutorials and example programs that will help programmers who are new to Eclipse and the Standard Widget Toolkit (SWT) install Eclipse correctly and run some simple Java/SWT programs.
http://www.cs.umanitoba.ca/~eclipse/

Good Application use SWT:
Azureus - http://azureus.sourceforge.net

RSS Owl - http://www.rssowl.org

Vex - http://vex.sourceforge.net/

Hacking on Eclipse Itself
http://eclipsewiki.swiki.net/58
Tricks and Tips
http://eclipsewiki.swiki.net/36

SWT Standard Widget Toolkit - Development Resources
http://dev.eclipse.org/viewcvs/index...-home/dev.html

Eclipse Performance Tips
http://www.eclipsefaq.org/chris/tips/

The Eclipse Rich Client Platform
http://www.eclipsefaq.org/chris/Laff...3_document.htm

Contributing to Eclipse
http://www.eclipsecon.org/2005/tutorials.php

The Java Developer's Guide to Eclipse
http://www.jdg2e.com/

java user group stuttgart
http://www.jugs.de/

eclipse plugin central
http://www.eclipseplugincentral.com/

on eclipse
http://www.oneclipse.com/

Editors not tied to the resources framework
http://www.jroller.com/page/Zhou/200...rs_not_tied_to

eclipseteam
http://www.eclipseteam.de/wiki/bin/view/Public/Home

www.oneclipse.com

www.eclipseplugincentral.com

www.eclipsepowered.org

http://www.canoo.com/ulc/demos/onlineshop.html
http://www.javafan.net/index.jsp

SWT/JFace TableViewer Demo
http://www.opnworks.com/opnworks/en/...dies/index.jsp

Building and delivering a table editor with SWT/JFace
http://www.eclipse.org/articles/Arti...le_viewer.html

Jeff and Jean-Michel 的经典书 Eclipse Rich Client Platform: Designing, Coding, and Packaging Java(TM) Applications (The Eclipse Series) 一书源代码已经升级到3.2.1 版本

 
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
目 录 1.富客户端平台 1 1.1.概述 1 1.2.Eclipse RCP 建设风格——插件,扩展和扩展点 1 2.创建你的第一个RCP程序 1 2.1.创建一个RCP程序 2 2.2.启动你的RCP程序 5 2.3.应用程序VS 产品 6 3.应用程序里的插件ID 7 4.Actions的用法(菜单和工具栏) 7 4.1.概述 7 4.2.通过编码添加 8 4.3.由“扩展”方式向程序添加菜单和工具栏 11 5.添加组合键 19 5.1.概述 19 5.2.声明actions的组合键 19 6.系统托盘 24 7.外观 30 7.1.向程序中添加视图模板 31 7.2.向应用程序添加VIEW 36 7.3.向VIEW里添加action 40 8.和编辑器一起工作 51 8.1.概述 51 8.2.创建工程 51 8.3.创建并准备domain 模型 51 8.4.在视口中使用domain模型 57 8.5.加入编辑器 58 8.6.调用编辑器 66 8.7.向编辑器提供内容 70 9.对话框 71 9.1概述 71 9.2.预定义的对话框 71 9.2.1.概述 71 9.2.2.创建工程 71 9.2.3.声明action 71 9.2.4.调用对话框 71 9.3.用户自定义对话框 74 9.3.1.概述 74 9.3.2.创建工程 74 9.3.3.声明action 74 9.3.4.声明action 74 9.3.5.创建对话框 75 10.向导(wizard) 77 10.1.概述 77 10.2.例子 77 11.首选项 85 11.1 首选项 85 11.2.使用首选项 85 11.3.首选项页 91 12.添加状态条 97 12.1.安装状态条 97 12.2.共享状态条 98 13.透视 103 13.1.向你的程序中添加透视图 103 13.2.使透视图可选。 107 13.2.1.使透视图可由一个coolbar可选 107 13.2.2.使透视图可通过菜单选择。 109 14.进度报告 112 15.将外部类包含进你的程序 118 15.1.概述 118 15.2.向构建路径中添加jar 118 15.3.使jar在你的运行路径里有效 119 16.提示和策略 120 16.1.控制台日志 120 16.2.保存用户的布局 121 16.3.获得display 122 16.4.使用eclipse的“保存”action 123 16.5.装载模型 127 16.6.向你的程序添加错误日志视口 127 17.制造一个产品 129 17.1.概述 129 17.2.创建一个工程 130 17.3.测试你的产品 134 18.商标 134 18.1.欢迎页面 134 18.2.商标 135 18.3.风格化launcher 136 19.发布你的产品 137 20.发布引入外部jar的产品 141 20.1.整合外部jar和第三方库 141 Tip 142 21.1.创建一个新工程 144 21.2.创建一个产品 144 21.3.添加依赖性 145 21.4.向程序中添加action 146 21.5.创建一个帮助插件工程////原著写的不好 149 22.附录:配置文件 152 22.1.概述 152 22.2..project 153 22.3.Manifest.MF 154 23.附录:使用接口技术 154 23.2.Jface 154
开发项目用SWINGRCPSWT.JFACE的分析 第一个SWT程序 下面让我们开始一个SWT程序。(注意:以下的例子和说明主要针对Windows平台,其它的操作系统应该大同小异)。首先要在Eclipse安装文件中找到SWT包,Eclipse组织并不提供单独的SWT包下载,必须下载完整的Eclipse开发环境才能得到SWT包。SWT是作为Eclipse开发环境的一个插件形式存在,可以在${你的eclipse安装路径}\plugins路径下的众多子目录下去搜索SWT.JAR文件,在找到的JAR文件中包含了SWT全部的Java类文件。因为SWT应用了JNI技术,因此同时也要找到相对应的JNI本地化库文件,由于版本和操作平台的不同,本地化库文件的名称会有些差别,比如SWT-WIN32-2116.DLL是Window平台下Eclipse Build 2116的动态库,而在Unix平台相应版本的库文件的扩展名应该是.so,等等。注意的是,Eclipse是一个开放源代码的项目,因此你也可以在这些目录中找到SWT的源代码,相信这会对开发很有帮助。下面是一段打开空窗口的代码(只有main方法)。 import com.e2one.example; public class OpenShell{ public static void main(String [] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); // 开始事件处理循环,直到用户关闭窗口 while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } 确信在CLASSPATH中包括了SWT.JAR文件,先用Javac编译例子程序。编译无错后可运行java -Djava.library.path=${你的SWT本地库文件所在路径} com.e2one.example.OpenShell,比如SWT-WIN32-2116.DLL件所在的路径是C:\swtlib,运行的命令应该是java -Djava.library.path=c:\swtlib com.e2one.example.OpenShell。成功运行后,系统会打开了一个空的窗口。 剖析SWT API 下面再让我们进一步分析SWT API的组成。所有的SWT类都用org.eclipse.swt做为包的前缀,下面为了简化说明,我们用*号代表前缀org.eclipse.swt,比如*.widgets包,代表的是org.eclipse.swt.widgets包。 我们最常用的图形构件基本都被包括在*.widgets包中,比如Button,Combo,Text,Label,Sash,Table等等。其中两个最重要的构件当数Shell和Composite。Shell相当于应用程序的主窗口框架,上面的例子代码中就是应用Shell构件打开一个空窗口。Composite相当于SWING中的Panel对象,充当着构件容器的角色,当我们想在一个窗口中加入一些构件时,最好到使用Composite作为其它构件的容器,然后再去*.layout包找出一种合适的布局方式。SWT对构件的布局也采用了SWING或AWT中Layout和Layout Data结合的方式,在*.layout包中可以找到四种Layout和与它们相对应的布局结构对象(Layout Data)。在*.custom包中,包含了对一些基本图形构件的扩展,比如其中的CLabel,就是对标准Label构件的扩展,上面可以同时加入文字和图片,也可以加边框。StyledText是Text构件的扩展,它提供了丰富的文本功能,比如对某段文字的背景色、前景色或字体的设置。在*.custom包中也可找到一个新的StackLayout布局方式。 SWT对用户操作的响应,比如鼠标或键盘事件,也是采用了AWT和SWING中的Observer模式,在*.event包中可以找到事件监听的Listener接口和相应的事件对象,例如常用的鼠标事件监听接口MouseListener,MouseMoveListener和MouseTrackListener,及对应的事件对象MouseEvent。 *.graphics包中可以找到针对图片、光标、字体或绘图的API。比如可通过Image类调用系统中不同类型的图片文件。通过GC类实现对图片、构件或显示器的绘图功能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值