Loading presentation...

Present Remotely

Send the link below via email or IM

Copy

Present to your audience

Start remote presentation

  • Invited audience members will follow you as you navigate and present
  • People invited to a presentation do not need a Prezi account
  • This link expires 10 minutes after you close the presentation
  • A maximum of 30 users can follow your presentation
  • Learn more about this feature in our knowledge base article

Do you really want to delete this prezi?

Neither you, nor the coeditors you shared it with will be able to recover it again.

DeleteCancel

Make your likes visible on Facebook?

Connect your Facebook account to Prezi and let your likes appear on your timeline.
You can change this under Settings & Account at any time.

No, thanks

RCP Eclipse

No description
by

Ummair Asghar

on 5 July 2013

Comments (0)

Please log in to add your comment.

Report abuse

Transcript of RCP Eclipse

RCP Eclipse
RCP Eclipse Tutorial
Agenda

What is RCP ?
Why RCP Eclipse ?
RCP Component Structure
Hello RCP Plug-in Project
Demo time


Demo Time
Example Screen shots
What is RCP ?
Rich Client Platform
Programmer Tool
Integrate Individual Software Components
Data processing mostly on client side
Uses tested features of framework
Open-source examples of RCP's for Java are Eclipse, NetBeans,Spring Framework etc.



Why RCP ?

A core (micro kernel), life cycle manager
A standard bundling framework
A portable widget toolkit
File buffers, text handling, text editors
A workbench (views, editors, perspectives, etc.)
Tested features of the framework
Cross Platform Integration

RCP Eclipse
Core Components Eclipse
Eclipse as Open Source RCP Example
Plug-ins required to build
Minimal set known as RCP
org.eclipse.ui
org.eclipse.core.runtime,
Latest release Eclipse 4.4

Continued...
OSGI defines dynamic components for java
Equinox one implementation of the OSGi specification
SWT is the standard user interface component library
JFace provides user friendly API's on top of SWT
Workbench provides the framework for the application
Java Development Tools (JDT)
Version control support (EGit)
Other Plug-ins as well



Eclipse Plug-in Project
Main Configuration Files are:

MANIFEST.MF - contains the OSGi configuration information.

plugin.xml - Contains information about Eclipse specific extension mechanisms


MANIFEST.MF
plugin.xml
Basic Structure
HelloWorld RCP Application
Classes Required:

Application.java
ApplicationWorkbenchAdvisor.java
ApplicationWorkbenchWindowAdvisor.java
ApplicationActionBarAdvisor.java
Perspective.java
Activator.java

Application.java
Acts as a main routine
Controls the application
Creates Workbench
Attaches Advisor class to Workbench
Implements IplatformRunnable as interface

ApplicationWorkbenchAdvisor.java
Invisible Component
Complexity Hidden from user
Methods called from Platform
Notifies throughout the lifecycle
Ability to handle event loop exceptions
Extends WorkbenchAdvisor

ApplicationWorkbenchWindowAdvisor.java
Window Customization Class
Controls StatusLine,Toolbar,Title etc.
Also controls Workbench Window size
Supports methods like preWindow, postWindow, preShutdown, postShutdown etc.
Extends WorkbenchWindowAdvisor

ApplicationActionBarAdvisor.java
Provides methods for creating Menus,Sub-menus,Tool bars, Status bars etc.
Also provides action support using ActionFactory class
Perspective.java
Contains set of Visible Views,Editors,Menus etc.
Setting layout of the application
Controls their positions and sizes
Each RCP Application must have one default Perspective
Activator.java
Optional class
Contains Plug-in global Information

RCP Main Structure
Umair Asghar
Sadiq Alvi
Mateen Ahmed
Salman Ansari

RCP Examples
Task Assigned
Create a plug-in project having a Tree viewer.
Upon clicking any node in the tree the appropriate file should open in the editor.
The file then can be edited and saved.
Full transcript