[Java-gnome-developer] Updating sorted TreeModel
Brought to you by:
afcowie
From: Przemyslaw W. <pw...@o2...> - 2008-12-10 15:03:54
|
Hi all, I'm having troubles updating TreeModel, which is sorted: whenever I update a value in the column by which the model (view?) is sorted, the re-ordering happens and I have no guarantee that all the rows will be iterated over. Moreover, some rows may be iterated more than once. I found a message from Andrew on java-gnome-hackers, which points the same bug (http://article.gmane.org/gmane.comp.gnome.bindings.java.devel/1062): ===== I'll wait to so see what Srichand thinks of this, but I really don't think we should put this stuff on TreeIter. We moved one method only to TreeIter and that was just to make cycling over a model work.* The three methods you are proposing to add above are specialities of TreeStore and really do belong there (actually, they are part of the TreeModel interface, so the open question is whether you ever need the hierarchy methods on a model that is not a TreeStore), and not on TreeIter. [* and even that's sketchy: I am hitting a bug this week where a TreeModel is failing to update because I am making changes to something which affects the sort order while looping over a model's data. I should know better] ===== Any hints on how to achieve this? I'm using java-gnome 4.0.9 on Debian Lenny. Przemek |