Upload
ralf-sternberg
View
1.899
Download
3
Tags:
Embed Size (px)
Citation preview
Single-Sourcing Techniques for
RAP and RCP
Rüdiger HerrmannRalf Sternberg
Web 2.0 Desktop
RCP?
RCP Knowledge
Web 2.0 Knowledge
Web 2.0 Desktop
RCP / RAP
6
The Rich Ajax Platform
RAP Basics
8
Foundation: OSGi
e q u i n o x
RAPRCP
Layers of RCP
RAP Layers
On the Surface
13
Best of both worldsWorkbench Window
Tool BarMenu Bar
Page
Editor View
View
14
Select a point of view
Differences
16
Code Reuse
80%–98% is possible
shared code
platform specific code
RAP is Multi-User!
RCP RAP
RAP Runs in a Browser
RCP RAP
File systemGraphicsContext
File upload
API Differences
RAPRCP
Desktop-onlyfeatures
Web-specificfeatures
Techniques
Hand Tools
Eclipse SDK
RAP SDK
includes
- RAP Runtime
- Tooling
- Help
Workplace
Shared ProjectsRAP Workspace
RCP Workspace
24
Example Application
RCP Mail Demo
25
Runs immediately
26
Import into RAP Workspace
27
Do not copy!
28
Don't Panic!
29
Dependencies
Package Imports
Optional Dependencies
30
Optional Dependencies
31
Only Two Errors Left
Fragments
Host Bundle
Fragments
33
Create Fragmentsmaildemo.rap
maildemo.rcp
34
Move extensions
35
Only One Error Left
36
Delegation
Bundle
Fragment
37
API Differences
RCP
RAP
RCP +RAP
38
Helper Class
39
ImplementationLoader
40
Implementations
RCP
RAP
41
Zero Errors
42
Entry Point
43
Lift Off
45
Summary
46
Use Two Workspaces
47
Optional Dependencies
Compatibility Plug-in
Use Fragments
Host Bundle
Fragments
51
Use Delegation
Bundle
Fragment
… meet us at the booth
53
www.eclipse.org/rap