Project: Eclipse_Platform_UI
Bug 72727 [JFace] ColorFieldEditor doesn't call setPresentsDefaultValue(), unexpected results after Restore Defaults is pressed
Reported: 2004-08-26 15:34:49 | Status: closed fixed

Version: 3.0.1 Build id: 200408050912 In Preference page using ColorFieldEditor where default color is blue, 1) Change color to red 2) Press "Restore Defaults," color changes back to blue, boolean value isDefaultPresented is set to true in FieldEditor.loadDefault() 3) Change color to red. UI displays red, but preference is still set to default blue, since in FieldEditor.store() if (isDefaultPresented) { preferenceStore.setToDefault(preferenceName); } else { doStore(); } Other field editors have a selectionListener that setPresenetsDefaultValue (true). Can you do the same thing in ColorFieldEditor's PropertyChangeListener? eclipse.buildId=I200406192000

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/ColorFieldEditor.java