Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Target Platform RAP and RCP
Target Platform RAP and RCP [message #645767] Mon, 20 December 2010 13:36 Go to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member


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 #645775 is a reply to message #645767] Mon, 20 December 2010 14:38 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Hussein,
grab a copy of "Single Sourcing Guide" [1].

[1] http://eclipsesource.com/en/info/rcp-rap-single-sourcing-gui deline/

HTH,
Ivan

On 20.12.2010 3:36 PM, 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
>
Re: Target Platform RAP and RCP [message #645918 is a reply to message #645767] Tue, 21 December 2010 08:06 Go to previous messageGo to next message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

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 #646341 is a reply to message #645918] Thu, 23 December 2010 12:20 Go to previous messageGo to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member

the url u http://eclipsedriven.blogspot.com/2010/12/eclipse-rap-single -sourcing-awesomeness.html provided doesnt work ,
and i downloaded the single sourcing, but it doesnt answer my question, can i combine the two target platforms or not ?



Re: Target Platform RAP and RCP [message #646354 is a reply to message #646341] Thu, 23 December 2010 12:48 Go to previous messageGo to next message
Benjamin Wolff is currently offline Benjamin WolffFriend
Messages: 136
Registered: July 2009
Senior Member
A lin break sneaked in, it is: http://eclipsedriven.blogspot.com/2010/12/eclipse-rap-single -sourcing-awesomeness.html


Am 23.12.2010 13:20, schrieb Hussein Kobeisi:
>
> the url u http://eclipsedriven.blogspot.com/2010/12/eclipse-rap-single -sourcing- provided doesnt work , and i downloaded the single sourcing, but it doesnt answer my question, can i combine the two target platforms or not ?
>
>
>
>
Re: Target Platform RAP and RCP [message #646420 is a reply to message #645767] Thu, 23 December 2010 20:49 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

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 #646705 is a reply to message #646420] Thu, 30 December 2010 09:30 Go to previous messageGo to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member

@Ralf : the Problem using Different TP is that we will have to develop our Products(RAP and RCP) seperately, which iam trying to avoid.
ill try it once more to see what comes up



[Updated on: Thu, 30 December 2010 11:24]

Report message to a moderator

Re: Target Platform RAP and RCP [message #646711 is a reply to message #646420] Thu, 30 December 2010 11:23 Go to previous messageGo to next message
Hussein Kobeisi is currently offline Hussein KobeisiFriend
Messages: 49
Registered: December 2010
Member
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 Smile , 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 Wink
Re: Target Platform RAP and RCP [message #646897 is a reply to message #646711] Sun, 02 January 2011 20:05 Go to previous message
Hendy Irawan is currently offline Hendy IrawanFriend
Messages: 58
Registered: July 2009
Location: Bandung, Indonesia
Member

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/
Previous Topic:Shell will not open
Next Topic:IDoubleClickListener
Goto Forum:
  


Current Time: Fri Mar 29 02:31:00 GMT 2024

Powered by FUDForum. Page generated in 0.03199 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top