Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP/RCP applications -- one codebase?
RAP/RCP applications -- one codebase? [message #74680] Tue, 19 February 2008 13:59 Go to next message
Eclipse UserFriend
Originally posted by: klassa.cisco.com

Hi All,

Tried various searches in this newsgroup, but didn't hit upon quite the
info I was looking for. Didn't see it addressed in the DeveloperWorks
stuff about RAP, other than in this quip:

"""
Structuring your application to live in both worlds
Even though RAP isn't RCP, it's possible to share a lot of code between a
RAP and RCP application. To do this, we recommend having one plug-in that
serves as a base plug-in that contains UI code that can be used in RAP and
RCP. To accomplish this, we recommend you use Import-Package in your
MANIFEST.MF to specify dependencies. This will allow your base plug-in to
use packages whether they come from RAP or RCP. You aren't coupling
yourself to a specific implementation. After you have your base plug-in
set up, we recommend two more plug-ins, one for RAP-specific code, the
other for RCP-specific code. Finally, having two workspaces, where one has
a target platform set up for RAP and the other target platform for RCP. In
the future, we hope this becomes easier as the tooling evolves to
accommodate application developers writing code to run in RAP and RCP.
"""

My team is new to Eclipse plug-in development, and new to RAP.
Originally, we were looking to build a new web UI for our application, and
then re-do it as an Eclipse plug-in (and then have to support both). When
we were made aware of RAP, we got excited, thinking we could just write it
once (as en Eclipse plug-in), and then deploy it twice (once as a plug-in,
and once via RAP).

It sounds like that's possible at some level, but that there's still going
to be RCP-only code and RAP-only code.

My question is, if we go into this with the *goal* in mind of writing once
and deploying twice (once as plug-in, once via RAP), how much code reuse
is realistically possible? It sounds like there are some UI constructs
that don't translate well into a RAP setting. If we avoid those, for
example, can we wind up with a product that's got 99% of the same code,
and is merely built twice?

Looking for real-world examples/guidance, if at all possible (bearing in
mind that this is relatively new technology).

Thanks!
JK
Re: RAP/RCP applications -- one codebase? [message #74698 is a reply to message #74680] Tue, 19 February 2008 14:27 Go to previous messageGo to next message
martin is currently offline martinFriend
Messages: 12
Registered: July 2009
Junior Member
Hi, John,

I did quite an amount of research exactly on this topic. In my experience,
about 80% of code-reuse for both platforms is realistic, maybe 90% is
achievable (depending on the architecture of your software).

Big Point here are the different scopes for rap, which are not present in
a RCP-Application, but if you structure your plugins with regard to using
it in both platforms, this is quite easily handled.

I have already explained some of this stuff in this newsgroup, but I have
currently not the time to search for it.

Greetings

Martin
Re: RAP/RCP applications -- one codebase? [message #75058 is a reply to message #74698] Thu, 21 February 2008 00:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-dev.volanakis.de

Hi John,

I'm preparing an EclipseCon presentation on this topic. I'll have a
slide deck online in about two weeks. You may want to check back at
https://eclipsecon.greenmeetingsystems.com/submissions/view/ 233

Regards,
Elias.

Martin wrote:
> Hi, John,
>
> I did quite an amount of research exactly on this topic. In my
> experience, about 80% of code-reuse for both platforms is realistic,
> maybe 90% is achievable (depending on the architecture of your software).
>
> Big Point here are the different scopes for rap, which are not present
> in a RCP-Application, but if you structure your plugins with regard to
> using it in both platforms, this is quite easily handled.
>
> I have already explained some of this stuff in this newsgroup, but I
> have currently not the time to search for it.
>
> Greetings
>
> Martin
>
Re: RAP/RCP applications -- one codebase? [message #75264 is a reply to message #75058] Sat, 23 February 2008 03:46 Go to previous message
Eclipse UserFriend
Originally posted by: m.n.com

Excellent news! I'd like to be at EclipseCon but I will have to settle
for the slides. After a conversation with a friend, I've decide that
the [RAP] application I am working on should be both a desktop app and a
web app.



Elias Volanakis wrote:
> Hi John,
>
> I'm preparing an EclipseCon presentation on this topic. I'll have a
> slide deck online in about two weeks. You may want to check back at
> https://eclipsecon.greenmeetingsystems.com/submissions/view/ 233
>
> Regards,
> Elias.
>
> Martin wrote:
>> Hi, John,
>>
>> I did quite an amount of research exactly on this topic. In my
>> experience, about 80% of code-reuse for both platforms is realistic,
>> maybe 90% is achievable (depending on the architecture of your software).
>>
>> Big Point here are the different scopes for rap, which are not present
>> in a RCP-Application, but if you structure your plugins with regard to
>> using it in both platforms, this is quite easily handled.
>>
>> I have already explained some of this stuff in this newsgroup, but I
>> have currently not the time to search for it.
>>
>> Greetings
>>
>> Martin
>>
Previous Topic:Uploader: fails to upload file on Windows
Next Topic:BIDI Support
Goto Forum:
  


Current Time: Wed Sep 25 04:51:01 GMT 2024

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

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

Back to the top