cochand wrote:How does WindowBuilder Pro help set the nodes of a JFace TreeViewer?
cochand wrote:I see a data Property, which accepts Keys and Values. Entering data there doesn't change anything - the TreeViewer still contains the default Item 1 and Item 2 settings.
cochand wrote:My app needs to respond to tree node events, so it looks like I should use the JFace TreeViewer. I see the class TreeContentProvider that was automatically generated when using WBP to double click on the contentProvider event of a JFace TreeViewer. I see the TreeContentProvider.getChildren method with item_0, item_1, and item_2. I do not understand why this results in a tree with no leaf nodes (item_0, 1, and 2 repeat endlessly). How do I specify the tree hierarchy - ie some nodes with their specific children, and some leaf nodes?
cochand wrote:How do I specify leaf nodes?
cochand wrote:My solution so far has been to hard code the creation of the top level nodes, the leaves, and those inbetween, as shown below. Seems pretty hokey
Users browsing this forum: No registered users and 1 guest