possible to store preferences in database? [message #327491] |
Tue, 22 April 2008 09:54 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 Go to previous message](theme/Solstice/images/up.png) |
Wayne Beaton![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=wayne.beaton%40eclipse-foundation.org) 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
|
|
|
Powered by
FUDForum. Page generated in 0.03488 seconds