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/gui/tree/WorkspaceTree.java

    r8231 r8236  
    55import javax.swing.tree.TreePath;
    66import org.greenstone.gatherer.Configuration;
     7import org.greenstone.gatherer.DebugStream;
    78import org.greenstone.gatherer.Gatherer;
    89import org.greenstone.gatherer.file.FileNode;
     
    2728    public void refresh(int refresh_reason)
    2829    {
    29     Gatherer.println("WorkspaceTree::refresh()... ");
     30    DebugStream.println("WorkspaceTree::refresh()... ");
    3031
    3132    // The method for displaying the tree has changed - redraw the tree
    3233    if (refresh_reason == DragTree.TREE_DISPLAY_CHANGED) {
    33         Gatherer.println("...Reason: tree display changed.");
     34        DebugStream.println("...Reason: tree display changed.");
    3435        updateUI();
    3536    }
     
    3738    // The loaded collection has changed - currently do nothing
    3839    if (refresh_reason == DragTree.LOADED_COLLECTION_CHANGED) {
    39         Gatherer.println("...Reason: loaded collection changed.");
     40        DebugStream.println("...Reason: loaded collection changed.");
    4041    }
    4142
    4243    // The collection's contents have changed - refresh collection's import folder
    4344    if (refresh_reason == DragTree.COLLECTION_CONTENTS_CHANGED) {
    44         Gatherer.println("...Reason: collection contents changed.");
     45        DebugStream.println("...Reason: collection contents changed.");
    4546        String import_directory_str = Gatherer.c_man.getCollectionImport();
    4647        refreshEveryNodeShowingFolder(import_directory_str);
     
    4950    // The collections in the library have changed - refresh the collect directory
    5051    if (refresh_reason == WorkspaceTree.LIBRARY_CONTENTS_CHANGED) {
    51         Gatherer.println("...Reason: library contents changed.");
     52        DebugStream.println("...Reason: library contents changed.");
    5253        String collect_directory_str = Configuration.gsdl_path + Utility.COL_DIR;
    5354        refreshEveryNodeShowingFolder(collect_directory_str);
     
    5758    // The downloaded files have changed - refresh that node
    5859    if (refresh_reason == WorkspaceTree.DOWNLOADED_FILES_CHANGED) {
    59         Gatherer.println("...Reason: downloaded files changed.");
     60        DebugStream.println("...Reason: downloaded files changed.");
    6061        WorkspaceTreeModel.refreshDownloadedFilesNode();
    6162    }
     
    6364    // The folder shortcuts have changed - refresh only them
    6465    if (refresh_reason == WorkspaceTree.FOLDER_SHORTCUTS_CHANGED) {
    65         Gatherer.println("...Reason: folder shortcuts changed.");
     66        DebugStream.println("...Reason: folder shortcuts changed.");
    6667        WorkspaceTreeModel.refreshFolderShortcuts();
    6768    }
Note: See TracChangeset for help on using the changeset viewer.