Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Preferences, Scopes etc.
Preferences, Scopes etc. [message #300305] Tue, 07 March 2006 08:25 Go to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I'm always afraid to post a question here as many times I find it's dumb question as I'd failed to do my research first. But I think I've done all I can on this one.

1) When using ScopedPreferenceStore / PreferenceStore how can I enumerate the names of the values stored in a store or context?

2) How do I delete an item? I can setValue and getValue but there's no remove.

3) PreferenceStore seems implemented for ConfigurationScope, DefaultScope, InstanceScope and ProjectScope. But, there's nothing for the file level except for the PersistentProperty methods. Am I missing something? Is there a FileScope?
Re: Preferences, Scopes etc. [message #300351 is a reply to message #300305] Tue, 07 March 2006 17:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: varavamu.yahoo.com

For #2: I would think that by (re)setting the items value to the
default, it would effectively be removed from any persisted preferences.
Did you try that out?

hth,
Vijay

Charles Godwin wrote:
> I'm always afraid to post a question here as many times I find it's dumb question as I'd failed to do my research first. But I think I've done all I can on this one.
>
> 1) When using ScopedPreferenceStore / PreferenceStore how can I enumerate the names of the values stored in a store or context?
>
> 2) How do I delete an item? I can setValue and getValue but there's no remove.
>
> 3) PreferenceStore seems implemented for ConfigurationScope, DefaultScope, InstanceScope and ProjectScope. But, there's nothing for the file level except for the PersistentProperty methods. Am I missing something? Is there a FileScope?
>
Re: Preferences, Scopes etc. [message #300359 is a reply to message #300351] Tue, 07 March 2006 17:42 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

No, I didn't try resetting to the default value. I'll try that. It's not intuitively obvious from the documentation.

How would you remove something from the default store?
Previous Topic:get Author or username
Next Topic:Getting file system location of a project
Goto Forum:
  


Current Time: Fri Sep 19 08:18:12 EDT 2025

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

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

Back to the top