Ignore:
Timestamp:
2004-10-08T09:46:12+13:00 (20 years ago)
Author:
mdewsnip
Message:

Replaced all Gatherer.print* with DebugStream.print*.

File:
1 edited

Legend:

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

    r8231 r8236  
    3737import org.apache.xerces.parsers.*;
    3838import org.greenstone.gatherer.Configuration;
     39import org.greenstone.gatherer.DebugStream;
    3940import org.greenstone.gatherer.Dictionary;
    4041import org.greenstone.gatherer.Gatherer;
     
    7677    super(CollectionDesignManager.collect_config.getDocumentElement(), CollectionConfiguration.CLASSIFY_ELEMENT, new Classifier());
    7778    this.model = this;
    78     Gatherer.println("ClassifierManager: " + getSize() + " classifiers parsed.");
     79    DebugStream.println("ClassifierManager: " + getSize() + " classifiers parsed.");
    7980    // Reload/Create the library
    8081    loadClassifiers();
     
    108109    public static boolean clearClassifierCache() {
    109110
    110     Gatherer.println("deleting classifiers.dat");
     111    DebugStream.println("deleting classifiers.dat");
    111112    File class_file = new File(Utility.BASE_DIR + "classifiers.dat");
    112113    if (class_file.exists()) {
     
    197198    private void moveClassifier(Classifier classifier, boolean direction, boolean all) {
    198199    if(getSize() < 2) {
    199         Gatherer.println("Not enough classifiers to allow moving.");
     200        DebugStream.println("Not enough classifiers to allow moving.");
    200201        return;
    201202    }
     
    379380    }
    380381    catch (Exception error) {
    381         Gatherer.println("Unable to open "+ Utility.BASE_DIR + "classifier.dat");
     382        DebugStream.println("Unable to open "+ Utility.BASE_DIR + "classifier.dat");
    382383    }
    383384
     
    813814            Classifier new_classifier = null;
    814815            if(base_classifier != null) {
    815             Gatherer.println("Creating Classifier based on existing Classifer.");
     816            DebugStream.println("Creating Classifier based on existing Classifer.");
    816817            element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, base_classifier.getName());
    817818            new_classifier = new Classifier(element, base_classifier);
    818819            }
    819820            else {
    820             Gatherer.println("Creating new custom Classifier.");
     821            DebugStream.println("Creating new custom Classifier.");
    821822            element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, selected_object.toString());
    822823            new_classifier = new Classifier(element, null);
Note: See TracChangeset for help on using the changeset viewer.