How to connect everything together (binding and syncronisation?) [message #493764] |
Tue, 27 October 2009 17:56  |
Eclipse User |
|
|
|
I have a perspective with three components: a view with a treeviewer of objects, an editor (which edits the objects in the treeviewer) and a properties view which edits the selected item in the treeviewer.
I'm a bit confused on how to syncronise the objects between these views. For example, say the name of the object is changed using the properties view, how do I get the treeviewer to update (either by refresh or otherwise). If the editor part's name is the objects name and it gets changed by the properties view, how do I update the editor part name automatically?
Can somebody point me in the right direction? Basically, I'm struggling to understand how to connect all of the different components together!
Cheers
|
|
|
|
|
Re: How to connect everything together (binding and syncronisation?) [message #494676 is a reply to message #494619] |
Mon, 02 November 2009 02:44  |
Eclipse User |
|
|
|
Hi Epoch,
too bad that i dont have much experience with TreeViewer and Databinding because this technique is quite new.
Nevertheless for my TableViewer i use WritableList objects in my Model. If you add or remove some object to a WritableList, the Tableviewer will be updated automatically. So try that, i think it should work.
Greetz
Thomas
|
|
|
Powered by
FUDForum. Page generated in 0.08976 seconds