| Confusing PreferenceStore [message #494987] |
Tue, 03 November 2009 08:24  |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Hi all,
i've read about the different preferences scopes in Eclipse. So i've
defined a PreferenceInitializer like this:
IPreferencesService service = Platform.getPreferencesService();
final IEclipsePreferences prefs = new
DefaultScope().getNode("de.fraunhofer.fokus.testing.mbttool.ui.preferences ");
prefs.put(...);
...
service.applyPreferences(prefs, null);
This works quite well, but now i'm getting really confused. I've created
a simple FieldEditorPage and in the constructor, the PreferenceStore
should be applied?! How can i get the PreferenceStore from the
PreferenceService?
One option might be Activator.getDefault().getPreferenceStore, but is
this store exactly the same store, where all the initialization values
are stored? Well, may be, i mix some things... as mentioned, i'm a bit
confused actually.
Thanks
Timothy
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01557 seconds