Ignore:
Timestamp:
2003-12-02T17:15:47+13:00 (20 years ago)
Author:
jmt12
Message:

Moved the special folder 'shortcuts' from collection based to shared for the installation of gli. This caused some added fun when it turned out one of the workspace tree refreshes was blocking the AWTEvent thread, despite me putting tests in place to stop that from happening. It had never reared its ugly head before, as there were never any shortcut collections being mapped when a collection had been closed, or when GLI was exiting before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/WorkspaceTree.java

    r5869 r6086  
    2323
    2424    public void refresh(int refresh_reason) {
    25     System.err.print("WorkspaceTree::refresh()... ");
     25    Gatherer.println("WorkspaceTree::refresh()... ");
    2626
    2727    // The collections in the library have changed - refresh the collect directory
    2828    if (refresh_reason == DragTree.LIBRARY_CONTENTS_CHANGED) {
    29         System.err.println("Reason: library contents changed.");
     29        Gatherer.println("...Reason: library contents changed.");
    3030        String collect_directory_str = Gatherer.config.gsdl_path + Utility.COL_DIR;
    3131        refreshEveryNodeShowingFolder(collect_directory_str);
     
    3535    // A collection has been opened/closed - reload the whole shebang
    3636    if (refresh_reason == DragTree.LOADED_COLLECTION_CHANGED) {
    37         System.err.println("Reason: loaded collection changed.");
     37        Gatherer.println("...Reason: loaded collection changed.");
    3838        setModel(WorkspaceTreeModel.getWorkspaceTreeModel());
    3939    }
     
    4141    // The collection's contents have changed - refresh collection's import folder
    4242    if (refresh_reason == DragTree.COLLECTION_CONTENTS_CHANGED) {
    43         System.err.println("Reason: collection contents changed.");
     43        Gatherer.println("...Reason: collection contents changed.");
    4444        String import_directory_str = Gatherer.c_man.getCollectionImport();
    4545        refreshEveryNodeShowingFolder(import_directory_str);
     
    4848    // The method for displaying the tree has changed - redraw the tree
    4949    if (refresh_reason == DragTree.TREE_DISPLAY_CHANGED) {
    50         System.err.println("Reason: tree display changed.");
     50        Gatherer.println("...Reason: tree display changed.");
    5151        updateUI();
    5252    }
     
    5454    // The collection specific mapped directories have changed - refresh only them
    5555    if (refresh_reason == WorkspaceTree.MAPPED_DIRECTORIES_CHANGED) {
    56         System.err.println("Reason: mapped directories changed.");
     56        Gatherer.println("...Reason: mapped directories changed.");
    5757        WorkspaceTreeModel.refreshWebCacheMappings();
    5858        WorkspaceTreeModel.refreshCollectionSpecificMappings();
Note: See TracChangeset for help on using the changeset viewer.