Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Restore Defaults problems
Restore Defaults problems [message #164639] Tue, 02 December 2003 14:56
Eclipse UserFriend
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.
Previous Topic:Don't grok how to use CVS from Eclipse
Next Topic:how to know if the ActiveEditor() is the ActiveEditor that I am using
Goto Forum:
  


Current Time: Sun Jul 21 15:20:12 GMT 2024

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

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

Back to the top