Community
Participate
Working Groups
Our eclipse application is designed to dynamically add key/values to the preference store. We need a mechanism to remove a key from the preference store.
The mechanism is definitely there in org.eclipse.core.runtime.preferences.IEclipsePreferences. Did you get them from org.eclipse.ui.plugin.AbstractUIPlugin.getPreferenceStore()?Are these for preferences that would have a default? If not, org.eclipse.jface.preference.IPreferenceStore.setToDefault(String) might work for you since it removes the name (although it will set a default of "" if none specified). PW
Hi Paul, Thanks for the information. It works fine , Yes we do use the org.eclipse.ui.plugin.AbstractUIPlugin.getPreferenceStore() which gives us a ScopedPreferenceStore instance If i can request a few methods on the IPreferenceStore implementation they would be 1.a clear() method similar to java.util.prefs.Preferences 2.a removekey() method Warm Regards Sujeet
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.