Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » JFace TreeViewer
JFace TreeViewer [message #669998] Thu, 12 May 2011 07:36 Go to previous message
Stefan Ruzitschka is currently offline Stefan Ruzitschka
Messages: 16
Registered: December 2010
Junior Member
Hey Folks,

I have a problem. I have a JFace TreeViewer, with an ITreeContentProvider.

The method the input for the treeviewer is treeitem defined by a backend.
The tree item himself has an ID.

In the getElements() method from the content provider the getChildren() is called.
The getChildren() method get all children from the backend depending on the ID of the input tree item and returns a list of tree items.

The getParent() method returns null.

The hasChildren() method returns getChildren(treeitem).length > 0.

The problem here is that I only get all children of the initial tree item.
This happens because I call the getChildren() method in the getElements() method.

Is there a solution to get the tree item himself as visible root item into the tree?

Greetings
Stefan R.
 
Read Message
Read Message
Read Message
Previous Topic:Drag and Drop with Button
Next Topic:Table Viewer - Can the extra padding on each table cell be removed
Goto Forum:
  


Current Time: Sat May 25 14:14:06 EDT 2013

Powered by FUDForum. Page generated in 0.04961 seconds