Ignore:
Timestamp:
2004-10-08T09:46:12+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all Gatherer.print* with DebugStream.print*.

File:
1 edited

Legend:

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

    r7491 r8236  
    66import javax.swing.event.*;
    77import javax.swing.tree.*;
     8import org.greenstone.gatherer.DebugStream;
    89import org.greenstone.gatherer.Dictionary;
    910import org.greenstone.gatherer.Gatherer;
     
    5960    FileNode first_node = (FileNode)path.getPathComponent(0);
    6061    if(current.equals(first_node)) {
    61         Gatherer.println("First path component matches root node.");
     62        DebugStream.println("First path component matches root node.");
    6263        // For each path with this tree path
    6364        for(int i = 1; current != null && i < path.getPathCount(); i++) {
     
    6869            stale_node = (FileNode) stale_object;
    6970        }
    70         Gatherer.print("Searching for '" + stale_object + "': ");
     71        DebugStream.print("Searching for '" + stale_object + "': ");
    7172        // Locate the fresh node by searching current's children. Remember to ensure that current is mapped.
    7273        //current.unmap();
     
    7677        for(int j = 0; !found && j < current.getChildCount(); j++) {
    7778            FileNode child_node = (FileNode) current.getChildAt(j);
    78             Gatherer.print(child_node + " ");
     79            DebugStream.print(child_node + " ");
    7980            if((stale_node != null && stale_node.equals(child_node)) || stale_object.toString().equals(child_node.toString())) {
    8081            found = true;
    8182            current = child_node;
    82             Gatherer.println("Found!");
     83            DebugStream.println("Found!");
    8384            }
    8485            child_node = null;
     
    8788        for(int j = 0; !found && j < current.size(); j++) {
    8889            FileNode child_node = (FileNode) current.get(j);
    89             Gatherer.print(child_node + " ");
     90            DebugStream.print(child_node + " ");
    9091            if((stale_node != null && stale_node.equals(child_node)) || stale_object.toString().equals(child_node.toString())) {
    9192            found = true;
    9293            current = child_node;
    93             Gatherer.println("Found!");
     94            DebugStream.println("Found!");
    9495            }
    9596            child_node = null;
     
    9899        if(!found) {
    99100            current = null;
    100             Gatherer.println("Not Found!");
     101            DebugStream.println("Not Found!");
    101102        }
    102103        else {
    103             Gatherer.println("Returning node: " + new TreePath(current.getPath()));
     104            DebugStream.println("Returning node: " + new TreePath(current.getPath()));
    104105        }
    105106        // Repeat as necessary
Note: See TracChangeset for help on using the changeset viewer.