Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Another Preferences question
Another Preferences question [message #225291] Fri, 09 April 2004 11:47 Go to next message
Eclipse UserFriend
I may be missunderstanding the manner in which
org.eclipse.core.runtime.Preferences actually work.

I was under the impression that:

Plugin p = Platform.getPluginRegistry().
getPluginDescriptor(pluginID).getPlugin();
Preferences prefStore = ((Plugin)p).getPluginPreferences();
prefStore.setValue(USER_GROUPS, value);

would write 'value' to a key USER_GROUPS and that this would be persisted
in the users workspace and be able to be retrieved. This information is
not being saved however and when I restart eclipse and try to retrieve
this information it is not there.

Is there something more I need to do? Does this prefStore need to be
saved? And if so how would I know where to save it to, I want the values
saved in it to be specific to the users workspace, so each user could have
different values in it.

Any details about using the Preferences class would be greatly
appreciated. Thank you.

Greg
Re: Another Preferences question [message #225350 is a reply to message #225291] Fri, 09 April 2004 13:42 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

You need save it. There is an api on the preferences to say save. You
don't need to specify a location when saving.


--
Thanks, Rich Kulp

Previous Topic:M8: Plugin.getDefault() == null ??
Next Topic:Using the Visual Editor?
Goto Forum:
  


Current Time: Mon Jun 16 08:12:44 EDT 2025

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

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

Back to the top