Changeset 12652


Ignore:
Timestamp:
2006-09-01T14:40:39+12:00 (18 years ago)
Author:
mdewsnip
Message:

Added support for editing the collection macros/extra.dm file using the MacrosManager with remote building.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/MacrosManager.java

    r12651 r12652  
    4848import org.greenstone.gatherer.gui.DesignPaneHeader;
    4949import org.greenstone.gatherer.gui.GLIButton;
     50import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    5051
    5152
     
    211212        out.flush();
    212213        out.close();
     214
     215        // If we're using a remote Greenstone server, upload the new extra.dm file
     216        // This will return immediately, since we're on the event dispatch thread
     217        // Users need to wait until the upload has finished before pressing Preview Collection!
     218        if (Gatherer.isGsdlRemote) {
     219            String collection_name = Gatherer.c_man.getCollection().getName();
     220            RemoteGreenstoneServer.uploadCollectionFile(collection_name, extra_dm_file);
     221        }
    213222        }
    214223        catch (Exception exception) {
Note: See TracChangeset for help on using the changeset viewer.