preferences [message #253109] |
Wed, 16 June 2004 09:36 |
Eclipse User |
|
|
|
hi,
I recently switched from the Plugin#initializeDefaultPluginPreferences()
to the new AbstractPreferenceInitializer-mechanism, and I now have some
small questions:
- why shouldn't I initialize the default-preferences during the
"start(BundleContext context)" of my plugin? (I'm interfacing with
non-java code, and this would reduce the nb of interface-functions.)
- why was the default-preferences-method moved from the plugin-class to
the AbstractPreferenceInitializer-class? In the Preference-class I still
call MyPlugin.getDefault().getPluginPreferences().setDefault(...) , and I
don't know any other way...
- can AbstractPreferenceInitializer#initializeDefaultPreferences() be
called more than once during the lifecycle of a plugin?
- is it bad to get the PreferenceStore of the PlugIn (instead of using
the PluginPreferences directly)? AFAIK the preference-store is backed by
the PluginPreferences anyway.
thanks,
// florian
|
|
|
Powered by
FUDForum. Page generated in 0.02634 seconds