Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21:46 Go to next message
pmcclure07 is currently offline pmcclure07
Messages: 2
Registered: November 2011
Junior Member
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 22:20 Go to previous messageGo to next message
gary.stoneman is currently offline gary.stoneman
Messages: 5
Registered: October 2011
Junior Member
Have you tried TreeViewer.reveal(item)?
Re: TreeViewer with ILazyTreeContentProvider [message #757435 is a reply to message #757359] Fri, 18 November 2011 12:58 Go to previous message
pmcclure07 is currently offline pmcclure07
Messages: 2
Registered: November 2011
Junior Member
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: Fri Oct 24 19:06:06 GMT 2014

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

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