Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » possible to store preferences in database?
possible to store preferences in database? [message #327491] Tue, 22 April 2008 09:54 Go to next message
Eclipse UserFriend
Originally posted by: jacek.pospychala.pl.ibm.com

Hi,
I'd like to store my plug-ins preferences (located in
workspace/.metadata/plugins) in some remote location, e.g. database.
Is it possible?

My users could then use their settings from any of their RCP installations.

thanks

Jacek
Re: possible to store preferences in database? [message #327521 is a reply to message #327491] Wed, 23 April 2008 12:34 Go to previous message
Wayne Beaton is currently offline Wayne BeatonFriend
Messages: 554
Registered: December 2017
Senior Member
There are two different answers to this question.

You can store the values for preferences you control (i.e. defined in
bundles that you've created) anywhere you'd like.

If you want to change where *all* preferences are stored, I believe that
the answer is yes. Look at the IPreferencesService class. An instance of
this class, PreferencesService, is registered as an Equinox service. The
instance is accessed via the InternalPlatform#getPreferencesService()
method.

At least theoretically, you can create your own IPreferencesService
implementation and register it as an Equinox Service with a higher
Constants.SERVICE_RANKING than the existing service.

It looks like a lot of work to me. It's complicated by a comment on the
IPreferencesService interface that suggests that the interface is "not
intended to be implemented by clients"

HTH,

Wayne

On Tue, 2008-04-22 at 11:54 +0200, Jacek Pospychala wrote:
> Hi,
> I'd like to store my plug-ins preferences (located in
> workspace/.metadata/plugins) in some remote location, e.g. database.
> Is it possible?
>
> My users could then use their settings from any of their RCP installations.
>
> thanks
>
> Jacek
Previous Topic:CRUD editors
Next Topic:solaris 10 x86
Goto Forum:
  


Current Time: Fri Aug 23 09:30:25 GMT 2024

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

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

Back to the top