Ignore:
Timestamp:
2007-09-06T09:25:28+12:00 (17 years ago)
Author:
qq6
Message:

Couldn't get either the classifier or plugin list, when the remote gli applet was running.I decided to move this part back into init().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/tags/2-74/src/org/greenstone/gatherer/Gatherer.java

    r14257 r14422  
    402402    // Create GUI Manager (last) or else suffer the death of a thousand NPE's
    403403    g_man = new GUIManager(size);
    404 
     404   
     405    // Get a list of the core Greenstone classifiers and plugins
     406    Classifiers.loadClassifiersList(null);
     407    Plugins.loadPluginsList(null);
     408     
     409    // If using a remote Greenstone we need to download the collection configurations now
     410    if (Gatherer.isGsdlRemote) {
     411        if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
     412        // !! Something went wrong downloading the collection configurations
     413        System.err.println("Error: Could not download collection configurations.");
     414        System.exit(0);
     415        }
     416    }
    405417    }
    406418
     
    454466        g_man.setVisible(true);
    455467      }
     468
     469      //Couldn't get either the classifier or plugin list, when the remote gli applet was running.I decided to move this part back into init().
    456470      // Get a list of the core Greenstone classifiers and plugins
    457       Classifiers.loadClassifiersList(null);
     471      /* Classifiers.loadClassifiersList(null);
    458472      Plugins.loadPluginsList(null);
    459473     
     
    465479          System.exit(0);
    466480        }
    467       }
     481    }*/
    468482 
    469   if (open_collection_file_path == null) {
     483      if (open_collection_file_path == null) {
    470484     
    471       //the menu bar items, file and edit, are disabled from the moment of their creation. if there is no left-over collection from the last session, enable them; otherwise it is untill the collection finishes loading, will they be enabled in collectionManager.java
    472       setMenuBarEnabled(true);
     485      //the menu bar items, file and edit, are disabled from the moment of their creation. if there is no left-over collection from the last session, enable them; otherwise it is untill the collection finishes loading, will they be enabled in collectionManager.java
     486      setMenuBarEnabled(true);
    473487  } else {
    474488 
Note: See TracChangeset for help on using the changeset viewer.