PropertyChangeListener

Hello,

I try to use PropertyChangeListener to refresh element views in my plugin.
It works well for simple properties, like name, documentation or visibility, but there are problems with propeties referencing other elements, e.g. type, or childAdded and childRemoved. The getNewValue() method of event object doesn’t return added or removed element, but it returns any strange object.
How can I obtain a reference to added child or setted type?

Regards,
Jacek

Hello Jacek,

Glad to inform you that this problem is fixed in Service Pack 1. I will inform you once it is released.

Best regards,
Jick

Thank you,

This feature really impressed me.
Is it good idea to observe all elements of a given type nad react to changes on it (e.g. all classes with given stereotype), or it consumes too much resources?

Jacek

Hello Jacek,

I do not think the action you said would consume much resources.

Best regards,
Jick

Hello,

I just tried fixed propertychangelisteners. Works fine.

Thank You,
Jacek

Yes, this is fixed in Service Pack 1 :slight_smile: