Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Existing RCP / RAP compatibility classes
Existing RCP / RAP compatibility classes [message #516729] Wed, 24 February 2010 12:32 Go to next message
Eclipse UserFriend
Hi,

the Single Sourcing Guideline
http://eclipsesource.com/en/info/rcp-rap-single-sourcing-gui deline/
describes several solutions for running on RCP and RAP that could be
shared and re-used. F.e. the compatibility bundle in 3.2, NLSHelper in
12.4, or a SessionSingletonBase that also works globally in a RCP
environment.

I was just wondering, do such classes already exist as a bundle that
could be used and improved or is everybody supposed to groom a custom
utility project for this?

Greetings,

Ralf
Re: Existing RCP / RAP compatibility classes [message #516773 is a reply to message #516729] Wed, 24 February 2010 20:50 Go to previous messageGo to next message
Eclipse UserFriend
Ralf,

currently there is no such common compatibility bundle. Given the
diversity of applications I am not sure how far such a common solution
will be useful.
However, I like the idea a lot. If someone is willing to take care of
that it could be hosted in the RAP Incubator [1]. Anyone?
A more lightweight approach could be to start building a collection of
single-sourcing snippets. To start with this we could use the wiki.
Any other ideas?

Regards
Rüdiger

[1] http://www.eclipse.org/rap/incubator.php

--
Rüdiger Herrmann
http://eclipsesource.com


On 24.02.2010 23:26, Ralf Ebert wrote:
> Hi,
>
> the Single Sourcing Guideline
> http://eclipsesource.com/en/info/rcp-rap-single-sourcing-gui deline/
> describes several solutions for running on RCP and RAP that could be
> shared and re-used. F.e. the compatibility bundle in 3.2, NLSHelper in
> 12.4, or a SessionSingletonBase that also works globally in a RCP
> environment.
>
> I was just wondering, do such classes already exist as a bundle that
> could be used and improved or is everybody supposed to groom a custom
> utility project for this?
>
> Greetings,
>
> Ralf
>
Re: Existing RCP / RAP compatibility classes [message #516983 is a reply to message #516773] Thu, 25 February 2010 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rüdiger,

> However, I like the idea a lot. If someone is willing to take care of
> that it could be hosted in the RAP Incubator [1]. Anyone?
> A more lightweight approach could be to start building a collection of
> single-sourcing snippets. To start with this we could use the wiki.
> Any other ideas?

I really think pre-built and packaged bundle would be of great value.
For trying things out, I just created a little project
http://github.com/ralfebert/rcprap .

I really want to avoid all this crude fragmentImplementationLoaderStuff
in my application bundles because it clutters everything up to a point
that I deem unacceptable. All I needed for (reasonably) single sourcing
my example application http://www.ralfebert.de/projects/rcp_addressbook/
was this:

- NLS.get(...) that works in RCP and RAP
- Environment.isRAP()

I just created two bundles with the same package
"de.ralfebert.singlesource" for importing that provide these
classes/methods. For the NLS I even had to copy the RAP one, because I
also would prefer getting these things cached. Copying always feels bad
and the only thing that had to be changed is the getLocale() call and
removing the logging call. Couldn't this implementation be truly shared
for RCP and RAP?

Greetings,

Ralf



--
http://www.ralfebert.de/blog/eclipsercp/
Re: Existing RCP / RAP compatibility classes [message #518837 is a reply to message #516773] Fri, 05 March 2010 04:13 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rüdiger,

> However, I like the idea a lot. If someone is willing to take care of
> that it could be hosted in the RAP Incubator [1]. Anyone?

which requirements / responsibilities do come with this? I'd be willing to clean up /
extend / maintain the code I started in http://github.com/ralfebert/rcprap as far as
needed in my projects.

btw: another thing I found neccessary for single-sourcing is WidgetUtil.CUSTOM_VARIANT.

Greetings,

Ralf


--
http://www.ralfebert.de/blog/eclipsercp/
Re: Existing RCP / RAP compatibility classes [message #519271 is a reply to message #518837] Mon, 08 March 2010 05:55 Go to previous message
Eclipse UserFriend
On 05.03.2010 10:13, Ralf Ebert wrote:
> Hi Rüdiger,
>
>> However, I like the idea a lot. If someone is willing to take care of
>> that it could be hosted in the RAP Incubator [1]. Anyone?
>
> which requirements / responsibilities do come with this? I'd be willing
> to clean up / extend / maintain the code I started in
> http://github.com/ralfebert/rcprap as far as needed in my projects.
If the project is tailored to your needs, it is probably better to
remain on github for now. Once it is more mature, we can see if it suits
a more general usage and then move it over to eclipse.org if we see fit.
Does that make sense?

>
> btw: another thing I found neccessary for single-sourcing is
> WidgetUtil.CUSTOM_VARIANT.
>
> Greetings,
>
> Ralf
>
>


--
Rüdiger Herrmann
http://eclipsesource.com
Previous Topic:Text Widget and setText() is not working/edisplayed?
Next Topic:Proper detection when a session ends in RAP?
Goto Forum:
  


Current Time: Thu Jul 10 00:49:15 EDT 2025

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

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

Back to the top