|How do I update a column label provider when using ObservableValueEditingSupport? [SOLVED] [message #1755167]
||Tue, 28 February 2017 16:42
| Jens Rabe
Registered: September 2013
I have a TableViewer where the input is an ObservableList I create with EMFEditProperties.|
The TableViewer also has a TableViewerColumn which uses ObservableValueEditingSupport.
This works, I can edit the content in the column and the value gets correctly propagated to my EObjects in my list.
However, currently I use a simple CellLabelProvider which does NOT get updated. Is there a corresponding LabelProvider I can use, or how do I update the LabelProvider by myself?
EDIT: I didn't see the forest for the trees, as so often
It's very simple:
final ObservableListContentProvider cp = new ObservableListContentProvider();
final IObservableMap map = EMFProperties.value(MyPackage.eINSTANCE.getFoo_Bar()).observeDetail(cp.getKnownElements());
[Updated on: Tue, 28 February 2017 16:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01787 seconds