Пример #1
0
  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;
    }
  }
Пример #2
0
 public void expandCollapse(Tree pTree, int pModifier) {
   super.expandCollapse(pTree, pModifier);
   mNslVariableInput.mTextArea.append(toString() + " expanded/collapsed.\n");
 }
Пример #3
0
  public void select(Tree pTree, int pModifier) {

    // System.out.println("A SELECTION WAS MADE!!!");
    super.select(pTree, pModifier);
    mNslVariableInput.mTextArea.append(toString() + " selected.\n");
  }
Пример #4
0
 public void deleted(Tree pTree) {
   super.added(pTree);
   mNslVariableInput.mTextArea.append(toString() + " deleted.\n");
 }