Restore Defaults problems [message #164639] |
Tue, 02 December 2003 09:56 |
Eclipse User |
|
|
|
Originally posted by: brian.fernandes.codito.com
I've just implemented a preference page for my plugin and I have the
following problems.
1) If you "Restore Defaults" and then Apply, the defaults get applied -
good. But thereafter, if you make any changes and choose apply, they seem to
be ignored. The default values are repeatedly sent out.
If you close the preference page and reopen it then you see the Default
Value instead of the last value you had set. So the preference page works
fine on (re)opening it; until you choose "Restore Defaults".
There is a bug on bugzilla about this... but the confusing part is, this bug
exists for my plugin prefernce page and the Debug console, but not the java
editor. It seems the isDefaultPresented flag in FieldEditor is not getting
reset, because of which default values are being sent out... I'm now
checking up the Java Editor preferences..
https://bugs.eclipse.org/bugs/show_bug.cgi?id=38547
2) I'm using ColorFieldEditors. I've set the default values using the
PreferenceConverter#setDefaultIPreferenceStore, String, RGB).
If I simply change a value, the PreferenceChangeListener receives an RGB
Object as newValue. But if I Restore Defaults... and then apply, then I get
a the RGB value as a string like "64, 64, 64".
Anything I could be doing wrong ? Suggestions appreciated.
Thanks,
Brian.
|
|
|
Powered by
FUDForum. Page generated in 0.03594 seconds