Ignore:
Timestamp:
2010-08-11T21:28:34+12:00 (14 years ago)
Author:
ak19
Message:

Ticket #152: Allowing different paths to collect dir so that GLI can work with collect dirs on pen drives. NONE OF THESE CHANGES ARE FOR Client-GLI AS YET. 1. Preferences (Connection tab), Open and New Collection dialogs allow one to change the current collect directory containing the collections to select from. 2. New Collection dialog allows one to base a new collection on an existing collection in a collect dir other than the current collect dir. 3. Collections in the Documents in Greenstone Collections Workspace Tree Node now have two additional rightclick options: to move and copy these collections to another location.

File:
1 edited

Legend:

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

    r22467 r22605  
    402402     */
    403403    public void closeCollection() {
     404    if (collection == null) {
     405        return;
     406    }
    404407    DebugStream.println("Close collection: " + collection.getName());
    405408
     
    11541157    public void loadCollection(String collection_file_path)
    11551158    {
     1159    if(new File(collection_file_path).isDirectory()) { // collect folder instead of previously-opened collection
     1160        Gatherer.setMenuBarEnabled(true);
     1161        return; // nothing else to be done, no collection to open
     1162    }
     1163
    11561164    // Display a modal progress popup to indicate that the collection is being loaded
    11571165    ModalProgressPopup load_collection_progress_popup = new ModalProgressPopup(Dictionary.get("CollectionManager.Loading_Collection"), Dictionary.get("CollectionManager.Loading_Collection_Please_Wait"));
     
    15521560      // If there was an open collection last session, reopen it
    15531561      if (Gatherer.open_collection_file_path != null) {
    1554         // Load the collection now
    1555         loadCollection(Gatherer.open_collection_file_path);
     1562    // Load the collection now
     1563    loadCollection(Gatherer.open_collection_file_path);
    15561564      }
    15571565
Note: See TracChangeset for help on using the changeset viewer.