possible to store preferences in database? [message #327491] |
Tue, 22 April 2008 05:54  |
Eclipse User |
|
|
|
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 08:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05232 seconds