- Timestamp:
- 2004-10-08T09:46:12+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/AppendLineOnlyFileDocument.java
r7745 r8236 38 38 import javax.swing.event.*; 39 39 import javax.swing.text.*; 40 import org.greenstone.gatherer.DebugStream; 40 41 import org.greenstone.gatherer.Gatherer; 41 42 import org.greenstone.gatherer.gui.GLIButton; … … 83 84 */ 84 85 public AppendLineOnlyFileDocument(String filename, boolean build_log) { 85 Gatherer.println("Creating log: " + filename);86 DebugStream.println("Creating log: " + filename); 86 87 // Initialization 87 88 this.build_log = build_log; … … 116 117 } 117 118 catch (Exception error) { 118 Gatherer.printStackTrace(error);119 DebugStream.printStackTrace(error); 119 120 } 120 121 } … … 163 164 } 164 165 catch(Exception error) { 165 Gatherer.printStackTrace(error);166 DebugStream.printStackTrace(error); 166 167 } 167 168 } … … 187 188 } 188 189 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); 191 192 } 192 193 } … … 292 293 // } 293 294 // catch (IOException error) { 294 // Gatherer.printStackTrace(error);295 // DebugStream.printStackTrace(error); 295 296 // } 296 297 // if(text == null) { … … 366 367 } 367 368 catch (Exception error) { 368 Gatherer.printStackTrace(error);369 DebugStream.printStackTrace(error); 369 370 } 370 371 } … … 795 796 } 796 797 catch(Exception error) { 797 Gatherer.printStackTrace(error);798 DebugStream.printStackTrace(error); 798 799 } 799 800 element.clearContent(); … … 889 890 static synchronized public void print(String message) { 890 891 if (message.endsWith("\n")) { 891 Gatherer.print(message);892 DebugStream.print(message); 892 893 } 893 894 else { 894 Gatherer.println(message);895 DebugStream.println(message); 895 896 } 896 897 }
Note:
See TracChangeset
for help on using the changeset viewer.