Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to find an item in a TreeViewer?
How to find an item in a TreeViewer? [message #274919] Mon, 01 November 2004 04:19
Eclipse UserFriend
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
Previous Topic:detected the current selected project
Next Topic:Possible classpath problem with my plugin
Goto Forum:
  


Current Time: Mon Apr 28 03:03:47 EDT 2025

Powered by FUDForum. Page generated in 0.03744 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top