18 package org.turro.wd.tree;
20 import org.apache.pivot.collections.List;
21 import org.apache.pivot.collections.Sequence;
22 import org.apache.pivot.wtk.TreeView;
23 import org.apache.pivot.wtk.content.TreeBranch;
24 import org.apache.pivot.wtk.content.TreeNode;
33 List<TreeNode> roots = (List<TreeNode>) tree.getTreeData();
34 for(TreeNode tn : roots) {
35 if(tn instanceof TreeBranch) {
36 tree.expandBranch(Sequence.Tree.pathOf(roots, tn));
static void expandRootBranches(TreeView tree)