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.

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
2 edited

Legend:

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

    r13584 r13586  
    4848import org.greenstone.gatherer.Gatherer;
    4949import org.greenstone.gatherer.collection.BasicCollectionConfiguration;
     50import org.greenstone.gatherer.collection.CollectionManager;
    5051import org.greenstone.gatherer.file.WorkspaceTree;  // !!! Don't like this here
    5152import org.greenstone.gatherer.util.ArrayTools;
     
    293294        Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.LIBRARY_CONTENTS_CHANGED);
    294295
    295         if (Gatherer.c_man.getCollection() != null && collection.getShortName().equals(Gatherer.c_man.getCollection().getName())) {
     296        if (Gatherer.c_man.getCollection() != null && collection.getShortName().equals(CollectionManager.getLoadedCollectionName())) {
    296297            current_coll_deleted = true;
    297298        }
  • trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r13579 r13586  
    271271    else {
    272272        // Add in the filename, relative to the collection directory
    273         String collection_name = Gatherer.c_man.getCollection().getName();
     273        String collection_name = CollectionManager.getLoadedCollectionName();
    274274        String collection_directory_path = CollectionManager.getCollectionDirectoryPath(collection_name);
    275275        String metadata_file_relative_path = RemoteGreenstoneServer.getPathRelativeToDirectory(metadata_file, collection_directory_path);
     
    344344        if (Gatherer.isGsdlRemote) {
    345345            Utility.delete(metadata_file.getParentFile());
    346             RemoteGreenstoneServer.downloadCollectionFile(Gatherer.c_man.getCollection().getName(), metadata_file.getParentFile());
     346            RemoteGreenstoneServer.downloadCollectionFile(CollectionManager.getLoadedCollectionName(), metadata_file.getParentFile());
    347347        }
    348348
Note: See TracChangeset for help on using the changeset viewer.