Changeset 6255


Ignore:
Timestamp:
2003-12-12T17:55:52+13:00 (20 years ago)
Author:
jmt12
Message:

Debug comments while trying to find 203B240

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r6174 r6255  
    153153        result = new DefaultMutableTreeNode("Error");
    154154    }
     155    ///ystem.err.println(this + ".getChildAt(" + index + ") = " + result);
    155156    return result;
    156157    }
     
    166167        map();
    167168    }
    168     ///ystem.err.println(this + ".getChildCount() = " + children.size());
    169169    if(children != null) {
    170170        size = children.size();
    171171    }
     172    ///ystem.err.println(this + ".getChildCount() = " + size);
    172173    return size;
    173174    }
  • trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java

    r6176 r6255  
    3131    root.setModel(this);
    3232    root.map();
     33    }
     34
     35    public int getChildCount(Object parent) {
     36    return ((TreeNode)parent).getChildCount();
    3337    }
    3438
     
    118122    }
    119123    //else {
    120     //    System.err.println("Refresh: " + path.getLastPathComponent());
     124    //    ///ystem.err.println("Refresh: " + path.getLastPathComponent());
    121125    //}
    122126    // Only a valid action if this model is currently being displayed in a tree.
     
    237241    TreePath path = event.getPath();
    238242    FileNode node = (FileNode) path.getLastPathComponent();
     243    ///ystem.err.println("Unmap: " + node);
    239244    node.unmap();
    240245    // Fire the appropriate event.
     
    264269    TreePath path = event.getPath();
    265270    FileNode node = (FileNode) path.getLastPathComponent();
     271    ///ystem.err.println("Mapping: " + node);
    266272    node.map();
     273    ///ystem.err.println(" -> node has " + node.getChildCount() + " children");
    267274    nodeStructureChanged(node);
    268275    // Restore the cursor.
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTreeCellRenderer.java

    r6170 r6255  
    7373    Component tree_cell = null;
    7474    if(value instanceof FileNode) {
     75        ///ystem.err.println("getTreeCellRendererComponent(" + value + ")");
    7576        FileNode node = (FileNode) value;
    7677
Note: See TracChangeset for help on using the changeset viewer.