Bug 38545 - [Preferences] Property change events from preference page have wrong objects
Summary: [Preferences] Property change events from preference page have wrong objects
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Stefan Xenos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-05 17:05 EDT by Alan Boxall CLA
Modified: 2004-11-09 15:30 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Boxall CLA 2003-06-05 17:05:39 EDT
I created a preference page by extending FieldEditorPreferencePage and then 
created a ColorFieldEditor.

If I change the ColorFieldEditor and press apply the PropertyChangeEvent 
contains SWT RGB objects in both the old and new value fields of the event.

BUT, if I press the "Restore defaults" button and then press "Apply" the 
PropertyChangeEvent event contains String representations of the old and new 
values.

This also happens if I use the BooleanFieldEditor where instead of Boolean 
objects I get Strings with "true" or "false" in the event.

This should consistently pass the correct objects (Boolean or RGB) not strings.
Comment 1 DJ Houghton CLA 2004-11-09 15:30:58 EST
Closing as "won't fix"
See bug 74822 for an explanation and details.