about RCP

[url]http://www.vogella.de/articles/EclipseRCP/article.html[/url]

[b][Basic Concept][/b]
Eclipse RCP allows developers to use the Eclipse platform to create flexible and extensible desktop applications.

Eclipse is build upon a plugin architecture . Plugins are the smallest deployable and installable software components of Eclipse.

A plugin is a collection of files and a configuration file (MANIFEST.MF) which describes the plugin and its dependencies. The following picture show the content of an example plugin.

An Eclipse RCP application typically uses:
[img]http://dl.iteye.com/upload/attachment/530634/8cde81dd-bc5f-3ef4-9979-985d6ce767f7.gif[/img]
>The OSGi runtime provides the framework to run the modular application.
>SWT is the standard UI component library used by Eclipse and JFace provides some convenient API on top of SWT.
>The workbench provides the application frame in which all other UI components are displayed.

[b][Some relevent concepts][/b]
>OSGi is a specification of a service and module platform in Java at runtime.
The OSGi specification defines how Eclipse plugins defines:
1)their API - public classes which can be used by other plugins
2)their dependencies - package or plugins which are required for the plugin to run correctly

>Eclipse Equinox is currently the reference implementation of the OSGi specification.
Eclipse Equinox is the runtime environment on which the Eclipse IDE and Eclipse RCP application are based.
Eclipse the smallest unit of modularization is a plugin . The terms plugin and bundle are (almost) interchangable. An Eclipse plugin is also an OSGi bundle and vice versa. Eclipse Equinox extends the concept of bundles with the concept of extension points .

[b][Main components of RCP][/b]
The minimal required plugins to create and run an minimal Eclipse RCP application (with UI) are the two plugins "org.eclipse.core.runtime" and "org.eclipse.ui".
Necessary elements:
>Main program - A RCP main application class implements the interface "IApplication". This class can be viewed as the equivalent to the main method for standard Java application. Eclipse expects that the application class is defined via the extension point "org.eclipse.core.runtime.application".

>A Perspective - defines the layout of your application. Must be declared via the extension point "org.eclipse.ui.perspective".

>Workbench Advisor- invisible technical component which controls the appearance of the application (menus, toolbars, perspectives, etc)

Configuration files:
>MANIFEST.MF - contains the OSGi configuration information.
>plugin.xml - Information about the extensions and extension points
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值