| Help saving workbench preferenceStore [message #303217] |
Wed, 10 May 2006 10:13 |
Eclipse User |
|
|
|
Originally posted by: rhuff.slickedit.com
I am working on a plugin which provides an editor, and thus changes the
file associations under Window>Preferences>General>Editors>File
Associations: my editor becomes the default editor for some file types.
After I've set the editor to be the default for these file types, I save
the plugin's preferenceStore with the standard:
Plugin.getDefault().savePluginPreferences();
I do this the first time eclipse is loaded with my plugin, and this works
fine...however, unless I specifically open the File Associations tab under
Preferences, and click "Ok"...the default settings will not show up under
this tab the next time I load eclipse with the plugin.
It seems as though the settings are being saved in the preferenceStore for
my plugin but not in the public store for the workbench? Is this
possible/right? I say this because even though my editor does not appear
to be the default editor under the File Associations tab, a file of that
type will still load with my editor when opened. How can I save the
preference store that is retrieved from:
PlatformUI.getPreferenceStore();
Any help/tips are appreciated. Thanks.
- Ryan
|
|
|
Powered by
FUDForum. Page generated in 0.05913 seconds