Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Treeviewer expander gives false indication(How to make the expander invisible if no entries in tree branch)
Treeviewer expander gives false indication [message #905691] Thu, 30 August 2012 22:31 Go to next message
Herb Miller is currently offline Herb Miller
Messages: 21
Registered: September 2011
Junior Member
I am populating a treeviewer, and almost everything is working correctly.

I am getting complaints from the users that the little expander/collapser triangle indicates that a particular branch is expandable, even though there are no entries on that branch. When they click the expander, the expander becomes invisible. Shouldn't the expander be invisible before it is selected if there are no entries on that branch?

Is there any way for me to make the expander/collapser triangle invisible for a node of a treeviewer if there are no entries on that node?

Thanks.
Re: Treeviewer expander gives false indication [message #905755 is a reply to message #905691] Fri, 31 August 2012 02:45 Go to previous message
Herb Miller is currently offline Herb Miller
Messages: 21
Registered: September 2011
Junior Member
Well, through some experimentation, I may have found the answer.

The hasChildren implementation of the ITreeContentProvider was not returning false in all cases when there were no children.

Thanks.
Previous Topic:How to use the progress monitor with a custom wizard
Next Topic:TreeViewer with multiple same objects,adds child to first occurence of its parent
Goto Forum:
  


Current Time: Fri Oct 24 19:07:53 GMT 2014

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

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