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?
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?