`
limuquan
  • 浏览: 100616 次
  • 性别: Icon_minigender_1
  • 来自: 厦门
社区版块
存档分类
最新评论

Eclipse RCP with Eclipse Ganymede (一)RCP简介

    博客分类:
  • RCP
阅读更多

1. 富客户端平台

1.1 概述
Eclipse是一个强大的开发环境,并且我们可以使用它的框架来开发桌面应用程序,使用Eclipse的风格和功能,把开发焦点放在系统的逻辑功能上面,避免繁杂的界面开发。
对于Eclipse来说,一个完整RCP程序相当于一个插件,一个RCP程序包括如下基本元素:
Main program(主程序)
A Perspective (透视图)
Workbench Advisor
其中adWorkbench Advisor是一个非可视化的组件,用来控制程序的外观和展现,如(menus, toolbars, perspectives,等)。View(视图)并不是RCP所必须要有的,不过呢一个缺少View的RCP是不够Rich的。
所有的plug-in也必须具有”plugin.xml”配置文件。
一个RCP程序需要继承class org.eclipse.core.runtime.application作为Main program, 继承 org.eclipse.ui.perspective作为perspective,并且还要用到两个核心插件:org.e-clipse.core.runtime 和 org.eclipse.ui

1.2 Eclipse RCP结构-Plug-ins, Extensions and Extension-Points
Plug-in是Eclipse最重要的组成部分。Eclipse就是由许许多多的相互独立的Plug-in组成的。Plug-in是Eclipse中最小的可布署安装的组件。

1.3 Application 和Product
运行一个Eclipse程序,需要定义一个application ,application 就像java 语言中的main()方法一样,如果application 关闭的话,整个程序也将中止运行。
在Eclipse术语中,product 代表程序中的一切,像icons, splash screen, external jars, other plug-ins等。

1.3 Application 和Product

<!---->

分类: eclipse, eclipse RCP系列教程 |

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics