Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Existing RCP / RAP compatibility classes
Existing RCP / RAP compatibility classes [message #516729] Wed, 24 February 2010 17:32 Go to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
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] Thu, 25 February 2010 01:50 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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 16:44 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 72
Registered: July 2009
Member
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 09:13 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
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 10:55 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
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: Sat Nov 09 08:30:03 GMT 2024

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

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

Back to the top