Changeset 4595


Ignore:
Timestamp:
2003-06-12T12:07:19+12:00 (21 years ago)
Author:
kjdon
Message:

tidied up gatherer.debug - > gatherer.println

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
10 edited

Legend:

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

    r4580 r4595  
    879879            }
    880880            catch (Exception error) {
    881             gatherer.debug(error, "Error in ClassifierManager.AddListener.actionPerformed(): " + error);
     881            Gatherer.println("Error in ClassifierManager.AddListener.actionPerformed(): " + error);
     882            Gatherer.printStackTrace(error);
     883           
    882884            }
    883885            // And if all else fails create a new classifier.
  • trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java

    r4510 r4595  
    343343        }
    344344        in.close();
    345                 // Now attempt to finalize any commands that were not immediately parsed as they were waiting for unresolved references.
     345        // Now attempt to finalize any commands that were not immediately parsed as they were waiting for unresolved references.
    346346        subcollections.reparseUnresolved();
    347347        classifiers.reparseUnresolved();
     
    366366    public void save() {
    367367    try {
    368                 // If the file already exists (it should) rename it.
     368        // If the file already exists (it should) rename it.
    369369        if(in_file.exists()) {
    370370        String filename = in_file.getAbsolutePath();
     
    372372        backup.deleteOnExit();
    373373        if(!in_file.renameTo(backup)) {
    374             gatherer.debug("Error in CollectionDesignManager.parse(): FileRenamedException");
     374            Gatherer.println("Error in CollectionDesignManager.parse(): FileRenamedException");
    375375        }
    376376        in_file = new File(filename); // Just in case we moved it.
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java

    r4571 r4595  
    133133        backup.deleteOnExit();
    134134        if(!file.renameTo(backup)) {
    135             Gatherer.println("Error in CollectionManager.load(): FileNotRenamedException");
     135            Gatherer.println("Error in CollectionManager.load(): FileRenamedException");
    136136        }
    137137        }
     
    156156    // Now we check whether we've finished, or is this a Save As action, in which case we've got miles to go.
    157157    if(name != null) {
    158                 // 2. Call CollectionManager.makeCollection() to create the collection structure to save into (copied collection).
    159                 ///ystem.err.println("2. Make copy.");
     158        // 2. Call CollectionManager.makeCollection() to create the collection structure to save into (copied collection).
     159        ///ystem.err.println("2. Make copy.");
    160160        Gatherer.c_man.createCollection(null, null, name, null, null, null);
    161161        // spd.setProgress(getValue(MAKE_COLLECTION));
    162                 // 3. Copy files from the origin to the copied collections (except special collection files ending with ~).
    163                 // As part of this we must rename origin.col to copy.col
    164                 ///ystem.err.println("3. Copy origin.");
     162        // 3. Copy files from the origin to the copied collections (except special collection files ending with ~).
     163        // As part of this we must rename origin.col to copy.col
     164        ///ystem.err.println("3. Copy origin.");
    165165        ArrayList files = new ArrayList();
    166166        File collection_file = new File(Gatherer.c_man.getCollectionFilename());
  • trunk/gli/src/org/greenstone/gatherer/gui/GEditorPane.java

    r4367 r4595  
    259259    public void loadFile(File file) {
    260260    // Load the file.
    261     gatherer.debug("Opening config file " + file.getAbsolutePath());
     261    Gatherer.println("GEditorPane.loadFile():Opening config file " + file.getAbsolutePath());
    262262    try {
    263263        FileInputStream in = new FileInputStream(file);
     
    273273    catch (Exception error) {
    274274        //error.printStackTrace();
    275         gatherer.debug("Error: No Such File.");
     275        Gatherer.println("GEditorPane.loadFile():Error: No Such File.");
    276276    }
    277277    }
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r4587 r4595  
    436436      thumbnail_pane = new JPanel(new BorderLayout());
    437437
    438       gatherer.debug("\tCreating thumbnail_label");
     438      Gatherer.println("\tCreating thumbnail_label");
    439439      thumbnail_label = new JLabel(get("Thumbnail"));
    440440      thumbnail_label.setHorizontalAlignment(JLabel.CENTER);
    441441
    442       gatherer.debug("\tCreating thumbnail_view_pane");
     442      Gatherer.println("\tCreating thumbnail_view_pane");
    443443      thumbnail_view_pane = new JPanel(new FlowLayout(FlowLayout.CENTER));
    444444      thumbnail_scroll = new JScrollPane(thumbnail_view_pane);
  • trunk/gli/src/org/greenstone/gatherer/gui/SaveProgressDialog.java

    r4367 r4595  
    113113    }
    114114    catch (Exception e) {
    115         gatherer.debug(e, "Error in SaveProgressDialog.update(): " + e);
     115        Gatherer.println("Error in SaveProgressDialog.update(): " + e);
     116        Gatherer.printStackTrace(e);
    116117    }
    117118    }
  • trunk/gli/src/org/greenstone/gatherer/gui/browser/GHTMLPane.java

    r4366 r4595  
    109109    forward_pages = new Vector();
    110110
    111     gatherer.debug("\t\tCreating GHTMLPane");
     111    Gatherer.println("\t\tCreating GHTMLPane");
    112112    view = new JEditorPane();
    113113    view.setEditable(false);
  • trunk/gli/src/org/greenstone/gatherer/msm/GDMManager.java

    r4402 r4595  
    147147        }
    148148        put(metadata_file, metadata_xml);
    149                 //gatherer.debug(null, "[0ms]\tCached " + metadata_file);
     149        //Gatherer.println("[0ms]\tCached " + metadata_file);
    150150    }
    151151    return metadata_xml;
  • trunk/gli/src/org/greenstone/gatherer/msm/MSMProfiler.java

    r4451 r4595  
    215215        backup.deleteOnExit();
    216216        if(!profile_file.renameTo(backup)) {
    217             Gatherer.println("Error in MSMProfiler.save(): FileRenameException");
     217            Gatherer.println("Error in MSMProfiler.save(): FileRenamedException");
    218218        }
    219219        backup = null;
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r4530 r4595  
    914914        backup.deleteOnExit();
    915915        if(!temp[i].renameTo(backup)) {
    916             Gatherer.println("Error in MetadataSetManager.save(): FileRenameException");
     916            Gatherer.println("Error in MetadataSetManager.save(): FileRenamedException");
    917917        }
    918918        }
Note: See TracChangeset for help on using the changeset viewer.