Ignore:
Timestamp:
2007-01-12T14:05:00+13:00 (17 years ago)
Author:
mdewsnip
Message:

Added a static getLoadedCollectionName() function into CollectionManager, as part of making CollectionManager fully static.

File:
1 edited

Legend:

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

    r13455 r13586  
    4141import org.greenstone.gatherer.Dictionary;
    4242import org.greenstone.gatherer.Gatherer;
     43import org.greenstone.gatherer.collection.CollectionManager;
    4344import org.greenstone.gatherer.collection.CollectionTree;
    4445import org.greenstone.gatherer.collection.CollectionTreeNode;
     
    169170        file_queue.addJob(id, source, source_nodes, target, target_node, type);
    170171        if (Gatherer.isGsdlRemote) {
    171             String collection_name = Gatherer.c_man.getCollection().getName();
     172            String collection_name = CollectionManager.getLoadedCollectionName();
    172173
    173174            // Perform the appropriate action based on the job type (RemoteGreenstoneServer will queue)
     
    248249        // ... but only if it is inside the collection and we haven't already downloaded it
    249250        if (file.getAbsolutePath().startsWith(Gatherer.getCollectDirectoryPath()) && file.length() == 0) {
    250             if (RemoteGreenstoneServer.downloadCollectionFile(Gatherer.c_man.getCollection().getName(), file).equals("")) {
     251            if (RemoteGreenstoneServer.downloadCollectionFile(CollectionManager.getLoadedCollectionName(), file).equals("")) {
    251252            // Something has gone wrong downloading the file
    252253            return;
     
    323324                folder_file.createNewFile();
    324325                if (Gatherer.isGsdlRemote) {
    325                 RemoteGreenstoneServer.uploadCollectionFile(Gatherer.c_man.getCollection().getName(), folder_file);
     326                RemoteGreenstoneServer.uploadCollectionFile(CollectionManager.getLoadedCollectionName(), folder_file);
    326327                }
    327328            }
     
    329330                folder_file.mkdirs();
    330331                if (Gatherer.isGsdlRemote) {
    331                 RemoteGreenstoneServer.newCollectionDirectory(Gatherer.c_man.getCollection().getName(), folder_file);
     332                RemoteGreenstoneServer.newCollectionDirectory(CollectionManager.getLoadedCollectionName(), folder_file);
    332333                }
    333334            }
Note: See TracChangeset for help on using the changeset viewer.