Single-Sourcing Techniques
             for
       RAP         RCP
             and




                    Rüdiger Herrma...
Desktop
Web 2.0

          ?   RCP
RCP Knowledge
Web 2.0 Knowledge
Desktop
Web 2.0

          RCP / RAP
The Rich Ajax Platform




                         6
RAP Basics
Foundation: OSGi

    RCP      RAP




     equinox

                   8
Layers of RCP
RAP Layers
On the Surface
Best of both worlds
                     Workbench Window

         Menu Bar
         Tool Bar                       Page
...
Select a point of view




                         14
Differences
Code Reuse

                  80%–98% is possible
platform specific code




                         shared code
        ...
RAP is Multi-User!




 RCP            RAP
RAP Runs in a Browser

 File system       File upload
 GraphicsContext




     RCP                   RAP
API Differences



       RCP          RAP



  Desktop-only    Web-specific
  features           features
Techniques
Hand Tools

   Eclipse SDK



   RAP SDK
   includes
   - RAP Runtime
   - Tooling
   - Help
Workplace
Shared Projects
                  RAP Workspace




                  RCP Workspace
Example Application
            RCP Mail Demo




                            24
Runs immediately




                   25
Import into
    RAP Workspace




                    26
Do not copy!




               27
Don't Panic!




               28
Dependencies




 Package Imports
 Optional Dependencies
                         29
Optional Dependencies




                    30
Only Two Errors Left




                       31
Fragments
                  Fragments

    Host Bundle
Create Fragments
                   maildemo.rap




                   maildemo.rcp




                                 ...
Move extensions




                  34
Only One Error Left




                      35
Delegation



               Bundle




             Fragment
                        36
API Differences
RCP




RAP


RCP
 +
RAP
                  37
Helper Class




               38
ImplementationLoader




                   39
Implementations
RCP




RAP




                  40
Zero Errors




              41
Entry Point




              42
Lift Off




           43
Summary



          45
Use Two Workspaces




                     46
Optional Dependencies




                        47
Compatibility Plug-in
Use Fragments
                  Fragments

    Host Bundle
Use Delegation



                 Bundle




             Fragment
                          51
… meet us at the booth
www.eclipse.org/rap



                      53
Single Sourcing Techniques for RAP and RCP
Single Sourcing Techniques for RAP and RCP
Single Sourcing Techniques for RAP and RCP
Upcoming SlideShare
Loading in …5
×

Single Sourcing Techniques for RAP and RCP

2,197 views
2,096 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,197
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
91
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Single Sourcing Techniques for RAP and RCP

  1. 1. Single-Sourcing Techniques for RAP RCP and Rüdiger Herrmann Ralf Sternberg
  2. 2. Desktop Web 2.0 ? RCP
  3. 3. RCP Knowledge
  4. 4. Web 2.0 Knowledge
  5. 5. Desktop Web 2.0 RCP / RAP
  6. 6. The Rich Ajax Platform 6
  7. 7. RAP Basics
  8. 8. Foundation: OSGi RCP RAP equinox 8
  9. 9. Layers of RCP
  10. 10. RAP Layers
  11. 11. On the Surface
  12. 12. Best of both worlds Workbench Window Menu Bar Tool Bar Page Editor View View 13
  13. 13. Select a point of view 14
  14. 14. Differences
  15. 15. Code Reuse 80%–98% is possible platform specific code shared code 16
  16. 16. RAP is Multi-User! RCP RAP
  17. 17. RAP Runs in a Browser File system File upload GraphicsContext RCP RAP
  18. 18. API Differences RCP RAP Desktop-only Web-specific features features
  19. 19. Techniques
  20. 20. Hand Tools Eclipse SDK RAP SDK includes - RAP Runtime - Tooling - Help
  21. 21. Workplace
  22. 22. Shared Projects RAP Workspace RCP Workspace
  23. 23. Example Application RCP Mail Demo 24
  24. 24. Runs immediately 25
  25. 25. Import into RAP Workspace 26
  26. 26. Do not copy! 27
  27. 27. Don't Panic! 28
  28. 28. Dependencies Package Imports Optional Dependencies 29
  29. 29. Optional Dependencies 30
  30. 30. Only Two Errors Left 31
  31. 31. Fragments Fragments Host Bundle
  32. 32. Create Fragments maildemo.rap maildemo.rcp 33
  33. 33. Move extensions 34
  34. 34. Only One Error Left 35
  35. 35. Delegation Bundle Fragment 36
  36. 36. API Differences RCP RAP RCP + RAP 37
  37. 37. Helper Class 38
  38. 38. ImplementationLoader 39
  39. 39. Implementations RCP RAP 40
  40. 40. Zero Errors 41
  41. 41. Entry Point 42
  42. 42. Lift Off 43
  43. 43. Summary 45
  44. 44. Use Two Workspaces 46
  45. 45. Optional Dependencies 47
  46. 46. Compatibility Plug-in
  47. 47. Use Fragments Fragments Host Bundle
  48. 48. Use Delegation Bundle Fragment 51
  49. 49. … meet us at the booth
  50. 50. www.eclipse.org/rap 53

×