Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Help saving workbench preferenceStore
Help saving workbench preferenceStore [message #303217] Wed, 10 May 2006 10:13
Eclipse UserFriend
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
Previous Topic:Problem in RC3: Run As -> SWT Application
Next Topic:new to Eclipse
Goto Forum:
  


Current Time: Wed Nov 05 18:45:34 EST 2025

Powered by FUDForum. Page generated in 0.03231 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top