Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RCP and RAP single-sourcing
RCP and RAP single-sourcing [message #633439] Sun, 17 October 2010 22:59 Go to next message
Stefan Bleibinhaus is currently offline Stefan BleibinhausFriend
Messages: 4
Registered: October 2010
Junior Member
Hi,

i am fairly new with RCP and RAP, but i've successfully ported our RCP-based application to RAP. We want to use techniques of single-sourcing for having a huge common code-base and then platform-dependent projects for RCP and RAP.
I have found some methods on the web, which can help me doing this, but i don't know yet, which is the right one. So i'll present to you, what i have found and hope, you can help me choosing the best practice.
What i am personally thinking about, is to program against an interface and load the implementing class from a fragment, which is platform-dependent...

1)
-abstract type in host-bundle, that encapsulates the problem
-type implementation in the fragment, that platform dependent, solves the problem
-loading the platform specific implementation at runtime by means of reflection
(found at http://www.eclipse.org/rap/documentation/#resources - Webinar: Single-Sourcing Techniques for RAP and RCP, Oct 23, 2008, Frank Appel)

2)
using Patch-Fragments as described here: http://wiki.eclipse.org/RAP/Patch_Fragments

3)
your way to do it...?

Thanks for your help Smile

-Stefan
Re: RCP and RAP single-sourcing [message #633478 is a reply to message #633439] Mon, 18 October 2010 07:35 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 Stefan,
we provide a Single-Sourcing Guide that will probably help you.
See http://eclipsesource.com/en/info/rcp-rap-single-sourcing-gui deline/
HTH,
Ivan

On 10/18/2010 1:59 AM, Stefan Bleibinhaus wrote:
> Hi,
>
> i am fairly new with RCP and RAP, but i've successfully ported our
> RCP-based application to RAP. We want to use techniques of
> single-sourcing for having a huge common code-base and then
> platform-dependent projects for RCP and RAP.
> I have found some methods on the web, which can help me doing this,
> but i don't know yet, which is the right one. So i'll present to you,
> what i have found and hope, you can help me choosing the best practice.
> What i am personally thinking about, is to program against an
> interface and load the implementing class from a fragment, which is
> platform-dependent...
>
> 1)
> -abstract type in host-bundle, that encapsulates the problem
> -type implementation in the fragment, that platform dependent, solves
> the problem
> -loading the platform specific implementation at runtime by means of
> reflection
> (found at http://www.eclipse.org/rap/documentation/#resources -
> Webinar: Single-Sourcing Techniques for RAP and RCP, Oct 23, 2008,
> Frank Appel)
>
> 2)
> using Patch-Fragments as described here:
> http://wiki.eclipse.org/RAP/Patch_Fragments
>
> 3)
> your way to do it...?
>
> Thanks for your help :)
>
> -Stefan
Re: RCP and RAP single-sourcing [message #634252 is a reply to message #633439] Wed, 20 October 2010 23:51 Go to previous message
Stefan Bleibinhaus is currently offline Stefan BleibinhausFriend
Messages: 4
Registered: October 2010
Junior Member
Hi Ivan,

thank you for your answer and the helping link. Seems like the first method is the right way to do it! Smile

-Stefan
Previous Topic:Using the dropins folder
Next Topic:Has anyone successfully built a RAP app using Maven Tycho?
Goto Forum:
  


Current Time: Sat Apr 27 01:01:54 GMT 2024

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

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

Back to the top