Model to Viewer Databinding [message #1622101] |
Wed, 18 February 2015 09:01 |
|
Dear experts,
I am willing to bind a JFace TableViewer to a collection of objects, nothing that is not already covered by N tutorials and M snippets in Eclipse-land.
I successfully run one proposed snippet, where essentially a list of Persons is displayed through a viewer.
The snippet creates a sample collection of objects, then creates and binds the viewer and persons are listed there: ok.
I then tried to insert people dynamically to verify whether the TableViewer was updating itself automatically -- which I thought was the essence of databinding -- but it is not. Even if I am then manually updating the writable list of model objects.
So.. what is the dev intervention to achieve real-time update of a bound viewer upon model changes (collection+cell)?
Thanks for clarifying,
-Piero
|
|
|
|
Powered by
FUDForum. Page generated in 0.01894 seconds