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/util/AppendLineOnlyFileDocument.java

    r7745 r8236  
    3838import javax.swing.event.*;
    3939import javax.swing.text.*;
     40import org.greenstone.gatherer.DebugStream;
    4041import org.greenstone.gatherer.Gatherer;
    4142import org.greenstone.gatherer.gui.GLIButton;
     
    8384     */
    8485    public AppendLineOnlyFileDocument(String filename, boolean build_log) {
    85     Gatherer.println("Creating log: " + filename);
     86    DebugStream.println("Creating log: " + filename);
    8687    // Initialization
    8788    this.build_log = build_log;
     
    116117    }
    117118    catch (Exception error) {
    118         Gatherer.printStackTrace(error);
     119        DebugStream.printStackTrace(error);
    119120    }
    120121    }
     
    163164    }
    164165    catch(Exception error) {
    165         Gatherer.printStackTrace(error);
     166        DebugStream.printStackTrace(error);
    166167    }
    167168    }
     
    187188    }
    188189    catch(Exception exception) {
    189         Gatherer.println("Exception in AppendLineOnlyFileDocument.destroy() - unexpected");
    190         Gatherer.printStackTrace(exception);
     190        DebugStream.println("Exception in AppendLineOnlyFileDocument.destroy() - unexpected");
     191        DebugStream.printStackTrace(exception);
    191192    }
    192193    }
     
    292293//          }
    293294//          catch (IOException error) {
    294 //          Gatherer.printStackTrace(error);
     295//          DebugStream.printStackTrace(error);
    295296//          }
    296297//          if(text == null) {
     
    366367        }
    367368        catch (Exception error) {
    368         Gatherer.printStackTrace(error);
     369        DebugStream.printStackTrace(error);
    369370        }
    370371    }
     
    795796            }
    796797            catch(Exception error) {
    797                 Gatherer.printStackTrace(error);
     798                DebugStream.printStackTrace(error);
    798799            }
    799800            element.clearContent();
     
    889890    static synchronized public void print(String message) {
    890891    if (message.endsWith("\n")) {
    891         Gatherer.print(message);
     892        DebugStream.print(message);
    892893    }
    893894    else {
    894         Gatherer.println(message);
     895        DebugStream.println(message);
    895896    }
    896897    }
Note: See TracChangeset for help on using the changeset viewer.