Changeset 30854

Show
Ignore:
Timestamp:
29.09.2016 18:06:24 (3 years ago)
Author:
ak19
Message:

As per Kathy's suggestion, after editing the collectionConfig file with the ConfigFileEditor?, need to close and reopen the collection in order for the changes to take effect.

Location:
main/trunk/gli/src/org/greenstone/gatherer
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/collection/Collection.java

    r19944 r30854  
    233233    public File getCollectionDirectory() { 
    234234    return file.getParentFile(); 
     235    } 
     236 
     237    // return full file path of the collection object 
     238    public String getCollectionPath() { 
     239    return file.getAbsolutePath(); 
    235240    } 
    236241 
  • main/trunk/gli/src/org/greenstone/gatherer/gui/ConfigFileEditor.java

    r30705 r30854  
    186186 
    187187        this.dispose(); // get rid of this dialog, we're done 
     188 
     189        // close and reopen the collection in GLI 
     190        String current_collection_filepath = Gatherer.c_man.getCollection().getCollectionPath(); 
     191        Gatherer.c_man.closeCollection(); 
     192        Gatherer.c_man.loadCollection(current_collection_filepath); 
    188193    } 
    189194    }