[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] property change notification

Hi!

Having problems with property change notification. I have the editor, a property view, as well as an outline view. Model objects extend org.eclipse.jface.util.ListenerList. The edit parts for both editor and outline views implement IPropertyChangeListener. When I update an attribute in the property view, the corresponding edit parts for both editor and outline views are notified, as expected.

The outline view will always display a complete edit part hierarchy but the editor might only show a subset (one, several or all panels). Selection in the outline view determines what to show in the editor, so the tree edit parts in the outline view implement org.eclipse.jface.viewers.ISelectionChangedListener. When a panel is selected the model is updated (visible=true/false, for example) and this in turn fires a propertyChange. However, on this ocassion, only the edit parts for the outline view are notified but I need the editor to be notified so I can show/hide the appropriate model objects. The edit parts in the editor do not implement ISelectionChangedListener as selected objects may not be visible.

Any suggestions?

Many Thanks!