Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Model to Viewer Databinding(Real-time automatically triggered viewer updates)
Model to Viewer Databinding [message #1622101] Wed, 18 February 2015 09:01 Go to next message
Piero Campalani is currently offline Piero CampalaniFriend
Messages: 111
Registered: January 2015
Senior Member

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
Re: Model to Viewer Databinding [message #1622349 is a reply to message #1622101] Wed, 18 February 2015 12:31 Go to previous message
Piero Campalani is currently offline Piero CampalaniFriend
Messages: 111
Registered: January 2015
Senior Member

Moved to JFace group, sorry for polluting.
https://www.eclipse.org/forums/index.php/m/1622342/#msg_1622342
Previous Topic:Injecting preferences
Next Topic:How to react to Locale changes at runtime with string based translations ?
Goto Forum:
  


Current Time: Tue Nov 21 04:15:23 GMT 2017

Powered by FUDForum. Page generated in 0.01992 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software