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

    r7111 r8236  
    5959    this.element = element;
    6060    this.name = element.getAttribute(StaticStrings.TYPE_ATTRIBUTE);
    61     //Gatherer.println("Establishing Plugin: " + name);
     61    //DebugStream.println("Establishing Plugin: " + name);
    6262    // Parse in any argument options for this plugin, keeping a list of the ones found
    6363    HashMap known_arguments = new HashMap();
     
    6767        Element option_element = (Element) option_elements.item(i);
    6868        Argument argument = new Argument(option_element);
    69         //Gatherer.println("Rebuilding existing argument: " + argument.getName());
     69        //DebugStream.println("Rebuilding existing argument: " + argument.getName());
    7070        known_arguments.put(argument.getName(), argument);
    7171        if (argument.isAssigned() || base_plugin == null) {
     
    7777    // If a base plugin was given
    7878    if(base_plugin != null) {
    79         //Gatherer.println("Based on previous plugin.");
     79        //DebugStream.println("Based on previous plugin.");
    8080        // Copy the details, and add a reference to whatever base_plugins super plugin is. ??
    8181        description = base_plugin.getDescription();
     
    8686        Argument base_argument = (Argument) all_arguments.get(j);
    8787        String base_argument_name = base_argument.getName();
    88         //Gatherer.println("Library indicates this plugin should have an argument: " + base_argument_name);
     88        //DebugStream.println("Library indicates this plugin should have an argument: " + base_argument_name);
    8989        Argument existing_argument = (Argument) known_arguments.get(base_argument_name);
    9090        // Found an existing argument. Complete its details
    9191        if(existing_argument != null) {
    92             //Gatherer.println("Found existing argument. Filling out details.");
     92            //DebugStream.println("Found existing argument. Filling out details.");
    9393            existing_argument.setCustomArgument(false);
    9494            existing_argument.setDefaultValue(base_argument.getDefaultValue());
     
    108108        // No existing argument. Copy base_argument and add it, but do not set its assigned flag. That should be set the first time its changed by the user.
    109109        else {
    110             //Gatherer.println("No such argument. Adding new, unassigned, argument.");
     110            //DebugStream.println("No such argument. Adding new, unassigned, argument.");
    111111            // The trick thing is that we have to create a new element in the DOM as well.
    112112            Argument new_argument = base_argument.copy();
Note: See TracChangeset for help on using the changeset viewer.