TreePath getTreePath(TreeNode treeNode) { TreeNode parent = treeNode.getParent(); if (parent == null) { return new TreePath(treeNode); } else { TreePath ptp = getTreePath(parent); ptp = ptp.pathByAddingChild(treeNode); return ptp; } }
public void expandCollapse(Tree pTree, int pModifier) { super.expandCollapse(pTree, pModifier); mNslVariableInput.mTextArea.append(toString() + " expanded/collapsed.\n"); }
public void select(Tree pTree, int pModifier) { // System.out.println("A SELECTION WAS MADE!!!"); super.select(pTree, pModifier); mNslVariableInput.mTextArea.append(toString() + " selected.\n"); }
public void deleted(Tree pTree) { super.added(pTree); mNslVariableInput.mTextArea.append(toString() + " deleted.\n"); }