Ignore:
Timestamp:
2005-06-03T14:36:41+12:00 (19 years ago)
Author:
mdewsnip
Message:

Moved Utility.parse to XMLTools.parseXMLFile, as part of tidying up the Utility class.

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

Legend:

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

    r9908 r10006  
    326326    String collect_config_name = collect_config_file.getName();
    327327    if(collect_config_name.equals(COLLECTCONFIGURATION_XML)) {
    328         // Parse with Utility but don't use class loader
    329328        document = XMLTools.parseXMLFile(collect_config_file);
    330329    }
    331330    // Otherwise if this is a legacy collect.cfg file then read in the template and send to magic parser
    332331    else if(collect_config_name.equals(COLLECT_CFG)) {
    333         document = Utility.parse(PSEUDO_COLLECTCONFIGURATION_XML, true);
     332        document = XMLTools.parseXMLFile("xml/CollectionConfig.xml", true);
    334333        parse(collect_config_file);
    335334    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/LanguageManager.java

    r9564 r10006  
    4444import org.greenstone.gatherer.gui.GLIButton;
    4545import org.greenstone.gatherer.util.Utility;
     46import org.greenstone.gatherer.util.XMLTools;
    4647import org.w3c.dom.*;
    4748
     
    5354    extends DOMProxyListModel {
    5455
    55     static public Document LANGUAGES_DOCUMENT = Utility.parse("xml/languages.xml", true);
     56    static public Document LANGUAGES_DOCUMENT = XMLTools.parseXMLFile("xml/languages.xml", true);
    5657
    5758    static final private Dimension COMPONENT_SIZE = new Dimension(125,25);
Note: See TracChangeset for help on using the changeset viewer.