[Jrisk-cvs] SF.net SVN: jrisk-code:[1060] Grasshopper/src_swing/net/yura/grasshopper/ PopupBug.java
Brought to you by:
yuranet
|
From: <yu...@us...> - 2024-12-27 20:34:59
|
Revision: 1060
http://sourceforge.net/p/jrisk/code/1060
Author: yuranet
Date: 2024-12-27 20:34:58 +0000 (Fri, 27 Dec 2024)
Log Message:
-----------
use same method to append
Modified Paths:
--------------
Grasshopper/src_swing/net/yura/grasshopper/PopupBug.java
Modified: Grasshopper/src_swing/net/yura/grasshopper/PopupBug.java
===================================================================
--- Grasshopper/src_swing/net/yura/grasshopper/PopupBug.java 2024-12-27 20:22:46 UTC (rev 1059)
+++ Grasshopper/src_swing/net/yura/grasshopper/PopupBug.java 2024-12-27 20:34:58 UTC (rev 1060)
@@ -79,15 +79,6 @@
BugSystemInfo.locale = locale;
}
- public static void log(String text) {
- instance.debugText.append(text);
- }
- public static void clearLog() {
- if (!instance.simplePrintStream.hasHappened()) { // only clear is nothing has happened
- instance.debugText.setText("");
- }
- }
-
private void openPopup() {
// only create all this stuff if an error has happened
@@ -178,6 +169,16 @@
java.awt.Desktop.getDesktop().mail(mailto); // java 1.6 API
}
+
+ public static void log(String text) {
+ instance.appendString(text);
+ }
+ public static void clearLog() {
+ if (!instance.simplePrintStream.hasHappened()) { // only clear is nothing has happened
+ instance.debugText.setText("");
+ }
+ }
+
// avoid having to lock on the Writer.lock object, it will still need a AbstractDocument.writeLock
public void write(int c) {
appendString(String.valueOf((char) c));
|