How to find an item in a TreeViewer? [message #274919] |
Mon, 01 November 2004 04:19 |
Eclipse User |
|
|
|
Originally posted by: anonymous.newsgroups.com
Hello,
how can I find the corresponding TreeItem for an object in a TreeViewer?
While saving my data I'm doing some kind of validation for every object.
When I find an error in one object I would like to select this item in the
tree. I used the method TreeViewer.findItem() for it, but it returns null if
the tree is collapsed (and the corresponding tree item isn't shown).
Therefore I could expand the tree completely before doing the search, but I
need to preserve the state of expanding. Only the corresponding tree item
should be expanded in addition when necessary.
Any hints would be greatly appreciated!
Thanks in advance,
Ole
|
|
|
Powered by
FUDForum. Page generated in 0.03744 seconds