| Any reason why the "org.eclipse.jface.preference.PreferenceStore" class has no "remo [message #1770659] |
Tue, 15 August 2017 15:08  |
Eclipse User |
|
|
|
Q:
- Is there any reason why the "org.eclipse.jface.preference.PreferenceStore" class exposes no way to delete/remove a preference from the preference store?
- how to remove a preference from a "PreferenceStore" ?
Even if some want to extends this class, the "Properties" object that is used to store the preference is declared as private and there is no accessor, so it is not possible.
And the documentation states that "This class was not designed to be subclassed. "
I need to be able to remove some preference from the store, so it seems that my only option is to create my own implementation of the "IPersistentPreferenceStore" interface.
In fact I will "clone" the org.eclipse.jface.preference.PreferenceStore class and expose the remove() methods from the internal Properties object
Thanks
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04297 seconds