Ignore:
Timestamp:
2005-05-12T12:24:38+12:00 (19 years ago)
Author:
mdewsnip
Message:

Major changes to the metadata value table and tree in the Enrich pane. The metadata value table now allows direct editing in the table -- hopefully much more obvious to the user. Classes involved have been untangled and are much more re-usable. Special code for replacing metadata has been added, which uses a more direct and efficient method rather than removing then adding metadata as before. And many many minor tidy-ups.

File:
1 edited

Legend:

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

    r9828 r9856  
    5959import org.greenstone.gatherer.gui.WarningDialog;
    6060import org.greenstone.gatherer.metadata.DocXMLFileManager;
     61import org.greenstone.gatherer.metadata.MetadataChangedListener;
    6162import org.greenstone.gatherer.metadata.MetadataSet;
    6263import org.greenstone.gatherer.metadata.MetadataSetManager;
     
    7879 */
    7980public class CollectionManager
    80     implements GShellListener {
    81 
     81    implements GShellListener, MetadataChangedListener
     82{
    8283    /** Are we currently in the process of building? */
    8384    private boolean building = false;
     
    111112    this.importing = false;
    112113    this.collection = null;
     114
     115    MetadataXMLFileManager.addMetadataChangedListener(this);
    113116    }
    114117
     
    947950    public synchronized void message(GShellEvent event) {
    948951    }
     952
     953
     954    public void metadataChanged(CollectionTreeNode[] file_nodes)
     955    {
     956    if (collection != null) {
     957        collection.setMetadataChanged(true);
     958    }
     959    }
     960
    949961
    950962    /** This call is fired whenever a process within a GShell created by this class begins.
Note: See TracChangeset for help on using the changeset viewer.