private void showNode(TreeModel tree, Object node) {
    if (node == null) return;
    InvCatalogTreeNode tnode = (InvCatalogTreeNode) node;
    DatasetNode cp = tnode.ds;
    System.out.println(" node= "+cp.getName()+" leaf= "+tree.isLeaf( node));
    for (int i=0; i< tree.getChildCount(node); i++)
      showNode(tree, tree.getChild(node, i));
  }
private void showNode ( TreeModel tree , Object node ) { if ( node == null ) return ; InvCatalogTreeNode tnode = ( InvCatalogTreeNode ) node ; DatasetNode cp = tnode . ds ; System . out . println ( " node= " + cp . getName ( ) + " leaf= " + tree . isLeaf ( node ) ) ; for ( int i = 0 ; i < tree . getChildCount ( node ) ; i ++ ) showNode ( tree , tree . getChild ( node , i ) ) ; }
debug