|Pack tree columns on property sheet entry change [message #1786925]
||Tue, 15 May 2018 22:20
| Xi Jin
Registered: May 2018
We have an RCP app which uses a Tree and its corresponding TreeViewer. This tree uses an ObservableMapLabelProvider which provides the label text and an ObservableListTreeContentProvider for the content. We're using org.eclipse.jface.databinding-1.5.0-SDK-3.7.2.|
We supply an array of IObservableMap using
to construct the ObservableMapLabelProvider.
EMFObservables.observeMaps(contentProvider.getKnownElements(), new EStructuralFeature)
We have an implementation of IPropertySourceProvider which seems to be used for populating the property view by overriding getPropertySource(Object).
Now I can see that when I modify the property sheet entry for a label, IPropertySource#setPropertyValue(Object, Object) is invoked. I want to add a change listener to our ObservableMapLabelProvider or IObservableMap to ensure that the tree columns get packed once the label text is modified. I tried adding change map listener to each element of IObservableMap but it doesn't seem to work.
Any suggestions/pointers on where should I be adding the change listener to pack tree columns once label text is changed on the property sheet?
Powered by FUDForum
. Page generated in 0.01675 seconds