Changeset 13465


Ignore:
Timestamp:
2006-12-08T12:27:22+13:00 (17 years ago)
Author:
mdewsnip
Message:

Final bit of exploding metadata databases remotely: downloading the exploded folders afterwards, and enabling the menu item.

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

Legend:

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

    r13455 r13465  
    250250            explode_metadata_database = new JMenuItem(Dictionary.get("Menu.Explode_Metadata_Database"), KeyEvent.VK_E);
    251251            explode_metadata_database.addActionListener(this);
    252             explode_metadata_database.setEnabled(!Gatherer.isGsdlRemote);
    253252            add(explode_metadata_database);
    254253        }
  • trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r13464 r13465  
    342342        Gatherer.g_man.wait(false);
    343343        if (exit_value == 0) { // success
     344        // Clear out the old directory containing the metadata file and download the new directory
     345        if (Gatherer.isGsdlRemote) {
     346            Utility.delete(metadata_file.getParentFile());
     347            RemoteGreenstoneServer.downloadCollectionFile(Gatherer.c_man.getCollection().getName(), metadata_file.getParentFile());
     348        }
     349
    344350        // Load the new metadata.xml files
    345351        MetadataXMLFileManager.loadMetadataXMLFiles(metadata_file.getParentFile());
Note: See TracChangeset for help on using the changeset viewer.