|
|
|
|
|
|
|
|
|
|
Re: TreeTableRidget: Bind model to modifiable value [message #585808 is a reply to message #585753] |
Fri, 11 June 2010 18:16 |
Elias Volanakis Messages: 26 Registered: July 2009 |
Junior Member |
|
|
Hi Matthias,
sorry, you can't to that this way... The ridget does not keep the array reference (bad style - breaks encapsulation) only the values in the array. So changing the array after you invoke bindToModel(...) has no effect.
You can either invoke r.bindToModel(...); r.updateFromModel() or better:
1. Invoke ridget.setRootsVisible(false)
2. The root you bind to should be a dummy node that returns the real roots as it's children
3. Change the values returned by the getChildren method of the root >> children are updated. No re-binding or update needed.
Hope this helps. If you need a snippet let me know.
Elias.
--
Elias Volanakis | http://eclipsesource.com
elias (AT) eclipsesource.com | @evolanakis
Elias Volanakis | http://eclipsesource.com
elias (AT) eclipsesource.com | @evolanakis
|
|
|
|
Powered by
FUDForum. Page generated in 0.05751 seconds