Ignore:
Timestamp:
2004-08-20T14:41:43+12:00 (20 years ago)
Author:
mdewsnip
Message:

Removed some dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r7998 r8016  
    3939import org.greenstone.gatherer.gui.LongProgressBar;
    4040import org.greenstone.gatherer.gui.tree.DragTree;
    41 import org.greenstone.gatherer.msm.MetadataXMLFileManager;
    4241import org.greenstone.gatherer.undo.UndoManager;
    4342import org.greenstone.gatherer.util.ArrayTools;
     
    445444                    if (job.source.toString().equals("Collection")) {
    446445                    ///ystem.err.println("Move within collection...");
    447                     MetadataXMLFileManager gdm = Gatherer.c_man.getCollection().gdm;
    448446                    // we just retrieve the metadata attached to the origin node...
    449                     ArrayList existing_metadata = gdm.getMetadataOnly(source_file);
     447                    ArrayList existing_metadata = Gatherer.c_man.getCollection().gdm.getMetadataOnly(source_file);
    450448                    ///atherer.println("Existing metadata for " + origin_node + ": " + gdm.toString(existing_metadata));
    451449                    // then assign this remainder to the new folder.
    452450                    ///ystem.err.println("New metadata: " + gdm.toString(existing_metadata));
    453                     gdm.addMetadata(new_node, existing_metadata);
     451                    Gatherer.c_man.getCollection().gdm.addMetadata(new_node, existing_metadata);
    454452                    existing_metadata = null;
    455                     gdm = null;
    456453                    }
    457454                // If it came from the recycle bin retrieve the metadata from there, once again remembering to account for inherited metadata
    458455                    else if (job.source.toString().equals("Undo")) {
    459                     MetadataXMLFileManager gdm = Gatherer.c_man.getCollection().gdm;
    460456                    // Retrieve metadata from the recycle bin
    461457                    ArrayList existing_metadata = Gatherer.c_man.undo.getMetadata(source_file);
    462458                    // then assign this remainder to the new folder.
    463                     gdm.addMetadata(new_node, existing_metadata);
     459                    Gatherer.c_man.getCollection().gdm.addMetadata(new_node, existing_metadata);
    464460                    existing_metadata = null;
    465                     gdm = null;
    466461                    }
    467462                // Otherwise if it came from the workspace use the MSMs parsers to search for folder level metadata (such as metadata.xml or marc records).
Note: See TracChangeset for help on using the changeset viewer.