Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » PropertyChangeEvent event not consistent when passing values for preference
PropertyChangeEvent event not consistent when passing values for preference [message #42742] Wed, 21 May 2003 15:21 Go to next message
Eclipse UserFriend
I am running on Eclipse 2.1 Build id: 200303272130

I have a preference page that extends FieldEditorPreferencePage and
therefore uses FieldEditors to present and set the values.

I am using IPreferenceStore in my plugin.

I have noticed an inconsistency in the values passed to listeners of
property change events.

If I change a field on my preference page (e.g. BooleanFieldEditor) and
press "Apply" I get a PropertyChangeEvent that contains a newValue and
oldValue that are "Boolean" objects.

BUT

When I press the "Restore defaults" button and then "Apply" I get a
PropertyChangedEvent that contains newValue and oldValue as Strings to
represent the values "true" and "false".

It appears to be a problem because of the attempt to map between the older
IPreferenceStore and the newer Preferences classes.

Is this a bug or am I not using the property event values correctly?
Re: PropertyChangeEvent event not consistent when passing values for preference [message #44441 is a reply to message #42742] Thu, 22 May 2003 14:29 Go to previous message
Eclipse UserFriend
Originally posted by: lynne_kues.oti.com

There is a bug report for this. Bug 9259 [Preferences] IntegerFieldEditor
returns inconsistent value types in PropertyChangeEvent. I will update it
to indicate that it happens for booleans also. You can add yourself to the
CC and vote for it, though its pretty low priority.

"Alan" <boxall@ca.ibm.com> wrote in message
news:bagjk5$32l$1@rogue.oti.com...
> I am running on Eclipse 2.1 Build id: 200303272130
>
> I have a preference page that extends FieldEditorPreferencePage and
> therefore uses FieldEditors to present and set the values.
>
> I am using IPreferenceStore in my plugin.
>
> I have noticed an inconsistency in the values passed to listeners of
> property change events.
>
> If I change a field on my preference page (e.g. BooleanFieldEditor) and
> press "Apply" I get a PropertyChangeEvent that contains a newValue and
> oldValue that are "Boolean" objects.
>
> BUT
>
> When I press the "Restore defaults" button and then "Apply" I get a
> PropertyChangedEvent that contains newValue and oldValue as Strings to
> represent the values "true" and "false".
>
> It appears to be a problem because of the attempt to map between the older
> IPreferenceStore and the newer Preferences classes.
>
> Is this a bug or am I not using the property event values correctly?
>
>
Previous Topic:Umlauts in files get lost under linux
Next Topic:Have a external tool run two commands - possible?
Goto Forum:
  


Current Time: Tue Jul 22 19:11:11 EDT 2025

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

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

Back to the top