Target Platform RAP and RCP [message #645767] |
Mon, 20 December 2010 08:36  |
Eclipse User |
|
|
|
Hi Everybody,
i have some Questions that i couldnt answer searching the internet:
1. is there a way to combine the RCP and RAP TP together?
2. is it possible to avoid code duplication ?
example:RAP and RCP having shared Plugins, but in the dependencies we use 'org.eclipse.rap.ui' instead of 'org.eclipse.ui'.
3. is there a tutorial for creating Web and desktop apps from a single shared codebase?
Thanks in advance,
Hussein
|
|
|
|
|
|
|
|
|
|
Re: Target Platform RAP and RCP [message #646897 is a reply to message #646711] |
Sun, 02 January 2011 15:05  |
Eclipse User |
|
|
|
Hussein Kobeisi wrote:
> Thank u all for your Answers,
>
> i have Tried to use my RCP_TP and added the RAP1.4 _TP it didnt work,
> Reason is that our RCP_TP is still using eclipse 3.5, i downgraded my RAP
> to 1.2.2 and added it to the RCP_TP, it worked :) , now i have two working
> Projects on RCP and RAP basis, in the Same Workspace and on one TP.
>
> i still have to upgrade My RCP_TP to eclipse 3.6 and test it with the
> RAP1.3_TP. wish me luck ...ill post the results when iam done.
>
> I wish u all a Happy New Year and may the new Year be a Good Year filled
> with Lines of codes ;)
You don't have to develop "two products". You just have to maintain two
target platforms that have identical sets of included plugins, with the only
difference being the RCP and RAP plugins.
I have two TP definition files (.target files) for my project, one is based
on Eclipse 3.7M4 and one is RAP 1.4 and it works very well.
When I want to test with RCP I just switch to RCP target platform and it
runs. If I want to test with RAP I switch to RAP target and it runs.
Apart from very specific RCP/RAP functionality all my plugins build with
either TP, even the application. I don't use Application / IEntryPoint but I
use IApplication which works on both RCP and RAP.
The remaining issues are:
1. some plugins are not available in RAP, but this is a fact of life.
2. RCP .product and RAP branding and extension points are separate. I
consider this only a small annoyance and it doesn't bug me very much.
--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
|
|
|
Powered by
FUDForum. Page generated in 0.13571 seconds