没有合适的资源?快使用搜索试试~ 我知道了~
首页Eclipse4 RCP桌面应用开发教程
资源详情
资源评论
资源推荐

Eclipse RCP (Rich Client Platform) - Tutorial
Lars Vogel (c) 2009, 2016 vogella GmbHVersion 0.3,06.07.2016
Table of Contents
1. Introduction to Eclipse RCP applications
2. Architecture of Eclipse based applications
3. Core components of the Eclipse platform
4. Download the Eclipse Software Development Kit (SDK)
5. Install the e4 tools
6. Exercise: Create an RCP application with the wizard
7. Eclipse 4 application model
8. User interface model elements
9. Overview of available model objects
10. More to learn about Features and Products
11. Exercise: Creating an Eclipse RCP application
12. Exercise: Using the SWT browser widget
13. Dependency injection and Eclipse
14. The Eclipse context
15. Using annotations to define behavior
16. Exercise: Using @PostConstruct
17. Menu and toolbar application objects
18. Exercise: Adding menus
19. Exercise: Add a context menu to a table
20. Exercise: Adding a toolbar
21. View, popup and dynamic menus
22. Toolbars, ToolControls and drop-down tool items
23. More on commands and handlers
24. Key bindings
25. Enable to start your product with right mouse click
26. Learn more about Eclipse 4 RCP development
27. About this website
28. Eclipse RCP resources
Appendix A: Copyright and License
This tutorial gives an overview about creating Eclipse RCP applications.
1. Introduction to Eclipse RCP applications
Eclipse based applicationsEclipse applicationEclipse 4 applicationEclipse RCP
application
Eclipse RCP 应用程序是一个基于 Eclipse 平台技术的独立应用程序。本教程使用基于 Eclipse based applications、Eclipse application、Eclipse 4
应用程序和 Eclipse RCP 应用程序交替使用这些术语来引用这些应用程序。
!"# "##$!%#&
%#
Eclipse IDE 版本 2.0 最初是一个模块化的 IDE 应用程序。2004 年 Eclipse 3.0 版本发布。Eclipse 3.0 支持重用 Eclipse 平台的组件,以构建基于与 Eclipse IDE 相同的技
术的独立应用程序
Eclipse RCP&Eclipse Rich Client Platform
在这一点上,术语 Eclipse RCP 创造出来。Eclipse RCP 是 Eclipse 富客户端平台的缩写,它表明 Eclipse 平台是创建功能丰富的独立应用程序的基础。
!$'((&&
)*!!++(
版本 4 中的 Eclipse 版本。x 简化并统一了 Eclipse 编程模型,它现在基于最先进的技术,如依赖注入和通过 CSS 文件的声明式样式。

('&)
'
Eclipse RCP 应用程序受益于现有的用户界面和内部框架,并且可以重用现有的插件和特性。
,
客户决定 Eclipse RCP 构建因为:
-! !
Eclipse 平台是最成功的 Java IDE 的基础,因此是非常稳定和广泛使用的。
.!!&
默认情况下,它提供了本地用户界面组件,这些组件又快又可靠
&!
它有强大的模块化方法允许开发者根据系统设计组件
./+0&)
1'!!
像 IBM、SAP 和谷歌这样的公司使用 Eclipse 框架作为其产品的基础,因此确保 Eclipse 灵活、快速且持续发展
!&!
'&)
Eclipse 平台还培养了一个大型社区,为 Eclipse 框架提供支持、信息和扩展。
&(2
2. Architecture of Eclipse based applications
基于 Eclipse 的应用程序的架构
!&
!'
Eclipse RCP 应用程序由单个软件组件组成。Eclipse 应用程序基于一些基本组件,其他组件使用它们,并在它们之上提供扩展功能。
!&&&
!3'-!!4- 5!!-!
Eclipse IDE 可以被看作是一个特别的 Eclipse 应用程序,重点是支持软件开发。例如,Java 开发工具(JDT)提供了开发 Java 应用程序的功能。

6
(&
Eclipse RCP 应用程序通常使用与 Eclipse IDE 相同的基本组件。在这些之上,他们添加了如下图所示的特定于应用程序的组件。
3. Core components of the Eclipse platform
Eclipse 平台的核心组件
OSGi(!-!
6+0&(&6+0
!Equinox6+0(

2'!7&)
OSGi 是一个规范,用来描述开发基于组件的 Java 应用程序的模块化方法。OSGi 的编程模型允许你去定义动态软件组件,也就是 OSGi 服务。
Equinox 是 OSGi 规范的一个实现,并被 Eclipse 平台作为运行时使用。这个 Equinox 运行时提供了必要的 API 和框架来运行一个模块化的 Eclipse 应用程序
SWTJFace!!
+8workbench!&)
SWT 是 Eclipse 使用的标准用户接口组件库。JFace 在 SWT 上提供了一些方便的 api。工作台为应用程序提供框架。它负责显示所有其他用户界面组件
EMF/3&)&!
99((
EMF 是一个 Eclipse 建模框架,它提供了建模数据模型和在运行时使用该数据模型的功能。= = Eclipse 插件的重要配置文件
&((((
Eclipse 插件有以下主要配置文件。这些文件定义了 API,以及插件的依赖关系
MANIFEST.MF6+0(
MANIFEST.MF——包含 OSGi 配置信息
plugin.xml((('
plugin.xml可选配置文件,包含有关 Eclipse 特定扩展机制的信息
()2('!
MANIFEST.MF(
Eclipse 插件通过 manifest . mf 文件定义了它的元数据,比如它唯一的标识符、导出的 API 及其依赖项
plugin.xml(!(:
extension pointsextensions(Extension-points(
Extensions3
3'
Plugin.xml 文件提供了创建和贡献 Eclipse 特定 API 的可能性。您可以在该文件中添加扩展点和扩展。扩展点为其他插件定义接口以提供功能。扩展为这些接口
提供了功能。功能可以是代码和非代码。例如,插件可能包含帮助内容
4. Download the Eclipse Software Development Kit
(SDK)
&$;46'5 &!
Eclipse SDK&<=,
http://download.eclipse.org/eclipse/downloads/
&)&))!
4!&5&

&!(,
8&zip
='/6+tar.gz
5. Install the e4 tools
5.1. Using the update manager
$!!$!
&
5.2. Install the e4 spies from Eclipse.org
剩余61页未读,继续阅读















安全验证
文档复制为VIP权益,开通VIP直接复制

评论7