[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: [DataBinding] Observable TreeViewer

Pepe Ciardelli wrote:
However, I need to do something similar with a TreeViewer, and am at a loss as to where or whether I can find something akin to ObservableListContentProvider for TreeViewer content.

ObservableSetTreeContentProvider is in CVS somewhere, if you check out the databinding sources you should find it.


I've written my own ObservableListTreeContentProvider, which I'm contributing to JDB, however it is not well-tested at the moment. The patch is in bugzilla 207858:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=207858

A known problem is that if equivalent nodes are present at multiple points in the tree and one of them is removed, the content provider loses track of the other equivalent nodes. Not a big deal if you're just using the tree in view-only mode though.

Matthew