- Timestamp:
- 2004-10-08T09:46:12+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r8231 r8236 37 37 import org.apache.xerces.parsers.*; 38 38 import org.greenstone.gatherer.Configuration; 39 import org.greenstone.gatherer.DebugStream; 39 40 import org.greenstone.gatherer.Dictionary; 40 41 import org.greenstone.gatherer.Gatherer; … … 76 77 super(CollectionDesignManager.collect_config.getDocumentElement(), CollectionConfiguration.CLASSIFY_ELEMENT, new Classifier()); 77 78 this.model = this; 78 Gatherer.println("ClassifierManager: " + getSize() + " classifiers parsed.");79 DebugStream.println("ClassifierManager: " + getSize() + " classifiers parsed."); 79 80 // Reload/Create the library 80 81 loadClassifiers(); … … 108 109 public static boolean clearClassifierCache() { 109 110 110 Gatherer.println("deleting classifiers.dat");111 DebugStream.println("deleting classifiers.dat"); 111 112 File class_file = new File(Utility.BASE_DIR + "classifiers.dat"); 112 113 if (class_file.exists()) { … … 197 198 private void moveClassifier(Classifier classifier, boolean direction, boolean all) { 198 199 if(getSize() < 2) { 199 Gatherer.println("Not enough classifiers to allow moving.");200 DebugStream.println("Not enough classifiers to allow moving."); 200 201 return; 201 202 } … … 379 380 } 380 381 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"); 382 383 } 383 384 … … 813 814 Classifier new_classifier = null; 814 815 if(base_classifier != null) { 815 Gatherer.println("Creating Classifier based on existing Classifer.");816 DebugStream.println("Creating Classifier based on existing Classifer."); 816 817 element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, base_classifier.getName()); 817 818 new_classifier = new Classifier(element, base_classifier); 818 819 } 819 820 else { 820 Gatherer.println("Creating new custom Classifier.");821 DebugStream.println("Creating new custom Classifier."); 821 822 element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, selected_object.toString()); 822 823 new_classifier = new Classifier(element, null);
Note:
See TracChangeset
for help on using the changeset viewer.