Bug 72727 [JFace] ColorFieldEditor doesn't call setPresentsDefaultValue(), unexpected results after Restore Defaults is pressed
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
bundles/org.eclipse.jface/src/org/eclipse/jface/preference/ColorFieldEditor.java
}
    /* (non-Javadoc)
     * Method declared on FieldEditor.
     */
    protected void doLoadDefault() {
        if (colorSelector == null)
            return;
        colorSelector.setColorValue(PreferenceConverter.getDefaultColor(
                getPreferenceStore(), getPreferenceName()));
    }
    /* (non-Javadoc)
     * Method declared on FieldEditor.
     */
    protected void doStore() {
        PreferenceConverter.setValue(getPreferenceStore(), getPreferenceName(),
                colorSelector.getColorValue());
    }
    /**
     * Get the color selector used by the receiver.
     * @return ColorSelector/
     */
    public ColorSelector getColorSelector() {
        return colorSelector;
    }
    /**
     * Returns the change button for this field editor.
     *
     * @param parent The control to create the button in if required.
     * @return the change button
     */