Changeset 30854 for main


Ignore:
Timestamp:
2016-09-29T18:06:24+13:00 (8 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 edited

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    }
Note: See TracChangeset for help on using the changeset viewer.