|
|
Re: Target Platform RAP and RCP [message #645918 is a reply to message #645767] |
Tue, 21 December 2010 08:06 |
|
Hi Hussein,
You can check out my experience with RAP and RCP single sourcing :
http://eclipsedriven.blogspot.com/2010/12/eclipse-rap-single -sourcing-
awesomeness.html
Hussein Kobeisi wrote:
>
>
> 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
--
Eclipse Driven Rich Application Development -
http://eclipsedriven.blogspot.com/
|
|
|
|
|
Re: Target Platform RAP and RCP [message #646420 is a reply to message #645767] |
Thu, 23 December 2010 20:49 |
|
Hi Hussein,
> 1. is there a way to combine the RCP and RAP TP together?
No. Mixing RAP and RCP bundles will end up in a broken target platform.
Why would you want to do that? Use RAP on the webserver and RCP for the
desktop.
> 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'.
You can either use package imports or optional dependencies to both
org.eclipse.ui and org.eclipse.rap.ui. We recommend the latter as it is
easy to do.
> 3. is there a tutorial for creating Web and desktop apps from a single
> shared codebase?
That's the single sourcing guide Ivan already pointed you to. It also
contains advice regarding 2.
Hope this helps, Ralf
--
Ralf Sternberg
Twitter: http://twitter.com/ralfstx
Blog: http://www.eclipsesource.com/blogs/
Professional support for RAP and RCP?
http://www.eclipsesource.com/support/
|
|
|
|
|
Re: Target Platform RAP and RCP [message #646897 is a reply to message #646711] |
Sun, 02 January 2011 20:05 |
|
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.03983 seconds