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/PlugInManager.java

    r8231 r8236  
    3838import org.apache.xerces.parsers.*;
    3939import org.greenstone.gatherer.Configuration;
     40import org.greenstone.gatherer.DebugStream;
    4041import org.greenstone.gatherer.Dictionary;
    4142import org.greenstone.gatherer.Gatherer;
     
    7071    public PlugInManager() {
    7172    super(CollectionDesignManager.collect_config.getDocumentElement(), CollectionConfiguration.PLUGIN_ELEMENT, new PlugIn());
    72     Gatherer.println("PlugInManager: " + super.getSize() + " plugins parsed.");
     73    DebugStream.println("PlugInManager: " + super.getSize() + " plugins parsed.");
    7374    model = this;
    7475    // Reload/Create the library
     
    102103    public static boolean clearPlugInCache() {
    103104
    104     Gatherer.println("deleting plugins.dat");
     105    DebugStream.println("deleting plugins.dat");
    105106    File plugin_file = new File(Utility.BASE_DIR + "plugins.dat");
    106107    if (plugin_file.exists()) {
     
    175176    // Can't ever move RecPlug or ArcPlug
    176177    if(super.getSize() < 4) {
    177         //Gatherer.println("Not enough plugins to allow moving.");
     178        //DebugStream.println("Not enough plugins to allow moving.");
    178179        return;
    179180    }
     
    290291    }
    291292    catch (Exception error) {
    292         Gatherer.printStackTrace(error);
     293        DebugStream.printStackTrace(error);
    293294    }
    294295    }
     
    335336    // Now go through the assigned plugins, and remove any that match.
    336337    available.removeAll(children());
    337     //Gatherer.println("There are a total of " + library.size() + " plugins in the library.");
    338     //Gatherer.println("However " + children().size() + " are in use,");
    339     //Gatherer.println("So only " + available.size() + " remain.");
     338    //DebugStream.println("There are a total of " + library.size() + " plugins in the library.");
     339    //DebugStream.println("However " + children().size() + " are in use,");
     340    //DebugStream.println("So only " + available.size() + " remain.");
    340341    Collections.sort(available);
    341342    return available.toArray();
     
    429430    }
    430431    catch (Exception error) {
    431         Gatherer.println("Unable to open "+ Utility.BASE_DIR + "plugins.dat");
     432        DebugStream.println("Unable to open "+ Utility.BASE_DIR + "plugins.dat");
    432433    }
    433434
     
    910911            PlugIn new_plugin = null;
    911912            if(base_plugin != null) {
    912             //Gatherer.println("New PlugIn based on existing PlugIn");
     913            //DebugStream.println("New PlugIn based on existing PlugIn");
    913914            element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, base_plugin.getName());
    914915            new_plugin = new PlugIn(element, base_plugin);
    915916            }
    916917            else {
    917             //Gatherer.println("New Custom PlugIn");
     918            //DebugStream.println("New Custom PlugIn");
    918919            element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, selected_object.toString());
    919920            new_plugin = new PlugIn(element, null);
Note: See TracChangeset for help on using the changeset viewer.