- Timestamp:
- 2004-10-08T09:46:12+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/tree/WorkspaceTree.java
r8231 r8236 5 5 import javax.swing.tree.TreePath; 6 6 import org.greenstone.gatherer.Configuration; 7 import org.greenstone.gatherer.DebugStream; 7 8 import org.greenstone.gatherer.Gatherer; 8 9 import org.greenstone.gatherer.file.FileNode; … … 27 28 public void refresh(int refresh_reason) 28 29 { 29 Gatherer.println("WorkspaceTree::refresh()... ");30 DebugStream.println("WorkspaceTree::refresh()... "); 30 31 31 32 // The method for displaying the tree has changed - redraw the tree 32 33 if (refresh_reason == DragTree.TREE_DISPLAY_CHANGED) { 33 Gatherer.println("...Reason: tree display changed.");34 DebugStream.println("...Reason: tree display changed."); 34 35 updateUI(); 35 36 } … … 37 38 // The loaded collection has changed - currently do nothing 38 39 if (refresh_reason == DragTree.LOADED_COLLECTION_CHANGED) { 39 Gatherer.println("...Reason: loaded collection changed.");40 DebugStream.println("...Reason: loaded collection changed."); 40 41 } 41 42 42 43 // The collection's contents have changed - refresh collection's import folder 43 44 if (refresh_reason == DragTree.COLLECTION_CONTENTS_CHANGED) { 44 Gatherer.println("...Reason: collection contents changed.");45 DebugStream.println("...Reason: collection contents changed."); 45 46 String import_directory_str = Gatherer.c_man.getCollectionImport(); 46 47 refreshEveryNodeShowingFolder(import_directory_str); … … 49 50 // The collections in the library have changed - refresh the collect directory 50 51 if (refresh_reason == WorkspaceTree.LIBRARY_CONTENTS_CHANGED) { 51 Gatherer.println("...Reason: library contents changed.");52 DebugStream.println("...Reason: library contents changed."); 52 53 String collect_directory_str = Configuration.gsdl_path + Utility.COL_DIR; 53 54 refreshEveryNodeShowingFolder(collect_directory_str); … … 57 58 // The downloaded files have changed - refresh that node 58 59 if (refresh_reason == WorkspaceTree.DOWNLOADED_FILES_CHANGED) { 59 Gatherer.println("...Reason: downloaded files changed.");60 DebugStream.println("...Reason: downloaded files changed."); 60 61 WorkspaceTreeModel.refreshDownloadedFilesNode(); 61 62 } … … 63 64 // The folder shortcuts have changed - refresh only them 64 65 if (refresh_reason == WorkspaceTree.FOLDER_SHORTCUTS_CHANGED) { 65 Gatherer.println("...Reason: folder shortcuts changed.");66 DebugStream.println("...Reason: folder shortcuts changed."); 66 67 WorkspaceTreeModel.refreshFolderShortcuts(); 67 68 }
Note:
See TracChangeset
for help on using the changeset viewer.