Changeset 10547


Ignore:
Timestamp:
2005-08-21T14:43:31+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now uploads all the modified metadata.xml files when the EnrichPane loses focus, rather than after each edit.

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

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/EnrichPane.java

    r10387 r10547  
    4848import org.greenstone.gatherer.metadata.MetadataValueTableEntry;
    4949import org.greenstone.gatherer.metadata.MetadataValueTreeNode;
     50import org.greenstone.gatherer.metadata.MetadataXMLFileManager;
    5051import org.greenstone.gatherer.util.DragGroup;
    5152import org.greenstone.gatherer.util.TreeSynchronizer;
     
    201202    public void loseFocus()
    202203    {
    203     // Nothing to do
     204    // Upload the modified metadata.xml files to the server now, if we're using one
     205    MetadataXMLFileManager.uploadModifiedMetadataXMLFiles();
    204206    }
    205207
  • trunk/gli/src/org/greenstone/gatherer/metadata/MetadataXMLFileManager.java

    r10511 r10547  
    109109    // Let any listeners know that the metadata has changed
    110110    fireMetadataChangedEvent(file_nodes);
    111 
    112     // Upload the modified metadata.xml files to the server, if we're using one
    113     uploadModifiedMetadataXMLFiles();
    114111    }
    115112
     
    316313    // Let any listeners know that the metadata has changed
    317314    fireMetadataChangedEvent(file_nodes);
    318 
    319     // Upload the modified metadata.xml files to the server, if we're using one
    320     uploadModifiedMetadataXMLFiles();
    321315    }
    322316
     
    353347    // Let any listeners know that the metadata has changed
    354348    fireMetadataChangedEvent(file_nodes);
    355 
    356     // Upload the modified metadata.xml files to the server, if we're using one
    357     uploadModifiedMetadataXMLFiles();
    358349    }
    359350
     
    374365
    375366
    376     static private void uploadModifiedMetadataXMLFiles()
     367    static public void uploadModifiedMetadataXMLFiles()
    377368    {
    378369    // This is only necessary when the collection is stored on a remote server
Note: See TracChangeset for help on using the changeset viewer.