Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TreeViewer with ILazyTreeContentProvider(expandToLevel() not displaying the expanded node)
TreeViewer with ILazyTreeContentProvider [message #757356] Thu, 17 November 2011 16:46 Go to next message
Eclipse UserFriend
I have a TreeViewer with SWT.VIRTUAL and an ILazyTreeContentProvider.
It has ~1000 top level nodes. I am trying to add a search so that the user can move right to the desired node. I'm calling expandToLevel(element, 1) on the searched for node. It works fine when the desired node is already visible.
But when the the searched for node is farther down the list, and not currently visible, it does not become visible.
Is there a way to change the view of the tree so that a specified root node is visible?

Thanks,
Re: TreeViewer with ILazyTreeContentProvider [message #757359 is a reply to message #757356] Thu, 17 November 2011 17:20 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried TreeViewer.reveal(item)?
Re: TreeViewer with ILazyTreeContentProvider [message #757435 is a reply to message #757359] Fri, 18 November 2011 07:58 Go to previous message
Eclipse UserFriend
Yes, I tried reveal(), update(), refresh() - but they didn't help...
Thanks,
Previous Topic:Memory leak with SWT browser
Next Topic:Line height with StyledText
Goto Forum:
  


Current Time: Wed Jul 23 17:21:08 EDT 2025

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

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

Back to the top