Changeset 12638


Ignore:
Timestamp:
2006-09-01T09:57:23+12:00 (18 years ago)
Author:
mdewsnip
Message:

Changed debug statements in new code to go to DebugStream.

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

Legend:

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

    r12637 r12638  
    118118            }
    119119            else {
    120             System.err.println("Already loaded arguments for " + classifier_name + "!");
     120            DebugStream.println("Already loaded arguments for " + classifier_name + "!");
    121121            }
    122122        }
     
    131131    static private void loadClassifierInfo(Classifier classifier)
    132132    {
    133     System.err.println("Loading arguments for " + classifier.getName() + "...");
     133    DebugStream.println("Loading arguments for " + classifier.getName() + "...");
    134134
    135135    // Run classifierfo.pl to get the list of classifiers
     
    174174    static public void loadClassifiersList()
    175175    {
    176     System.err.println("In loadClassifiersList()...");
     176    DebugStream.println("In loadClassifiersList()...");
    177177
    178178    // Run classifierfo.pl to get the list of classifiers
     
    611611
    612612
    613     /** This listener reacts to changes in the current selection of the classifier combobox. */
    614     private class ClassifierComboboxListener
    615         implements ItemListener {
    616         /** When a user selects a certain classifier, update the tooltip to show the classifier description. */
    617         public void itemStateChanged(ItemEvent event) {
    618             if(event.getStateChange() == ItemEvent.SELECTED) {
    619                 // Retrieve the selected classifier
    620                 Classifier current_selection = (Classifier) classifier_combobox.getSelectedItem();
    621                 // And reset the tooltip.
    622         classifier_combobox.setToolTipText(Utility.formatHTMLWidth(current_selection.getDescription(), 40));
    623         current_selection = null;
    624             }
    625         }
    626     }
     613    /** This listener reacts to changes in the current selection of the classifier combobox. */
     614    private class ClassifierComboboxListener
     615        implements ItemListener {
     616        /** When a user selects a certain classifier, update the tooltip to show the classifier description. */
     617        public void itemStateChanged(ItemEvent event) {
     618        if(event.getStateChange() == ItemEvent.SELECTED) {
     619            // Retrieve the selected classifier
     620            Classifier current_selection = (Classifier) classifier_combobox.getSelectedItem();
     621            // And reset the tooltip.
     622            classifier_combobox.setToolTipText(Utility.formatHTMLWidth(current_selection.getDescription(), 40));
     623            current_selection = null;
     624        }
     625        }
     626    }
     627
    627628
    628629    /** Listens for double clicks apon the list and react as if the configure button was pushed. */
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r12637 r12638  
    147147            }
    148148            else {
    149             System.err.println("Already loaded arguments for " + plugin_name + "!");
     149            DebugStream.println("Already loaded arguments for " + plugin_name + "!");
    150150            }
    151151        }
     
    173173    static private void loadPluginInfo(Plugin plugin)
    174174    {
    175     System.err.println("Loading arguments for " + plugin.getName() + "...");
     175    DebugStream.println("Loading arguments for " + plugin.getName() + "...");
    176176
    177177    // Run pluginfo.pl to get the list of plugins
     
    216216    static public void loadPluginsList()
    217217    {
    218     System.err.println("In loadPluginsList()...");
     218    DebugStream.println("In loadPluginsList()...");
    219219
    220220    // Run pluginfo.pl to get the list of plugins
Note: See TracChangeset for help on using the changeset viewer.