Changeset 8016


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

Removed some dead code.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 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).
  • trunk/gli/src/org/greenstone/gatherer/valuetree/GValueNode.java

    r7529 r8016  
    5050import java.util.*;
    5151import javax.swing.tree.*;
    52 import org.greenstone.gatherer.Gatherer;
    53 import org.greenstone.gatherer.msm.MSMUtils;
    5452import org.greenstone.gatherer.util.Codec;
    5553import org.greenstone.gatherer.util.StaticStrings;
    56 import org.greenstone.gatherer.util.Utility;
     54import org.greenstone.gatherer.util.XMLTools;
    5755import org.w3c.dom.*;
    5856
     
    8785    return toString().compareTo(sibling.toString());
    8886    }
    89 
    90     /** Determine if this tree node contains a child with a matching value.
    91      * @param value The value we are attempting to match, as a <strong>String</strong>.
    92      * @return <i>true</i> if there is a matching child node, <i>false</i> otherwise.
    93      */
    94     /* private boolean containsValue(String value) {
    95     if(default_value != null) {
    96         return false;
    97     }
    98     return getValue(value) != null;
    99     } */
    10087
    10188    /** Returns an enumeration of the child nodes.
     
    323310    String result = null;
    324311    if(name.equals("Subject")) {
    325         result = MSMUtils.getValue(element);
     312        result = XMLTools.getValue(element);
    326313        ///ystem.err.print(result);
    327314        switch(decode_type) {
Note: See TracChangeset for help on using the changeset viewer.