Factored TibetanDocument into two classes, one that is a
DefaultStyledDocument, and another consisting entirely of static utility methods for processing Tibetan text. Moved TibetanDocument.DuffData into its own class. I think this makes things a bit more transparent, and gets us a little closer to making clean use of Swing.
This commit is contained in:
parent
5249c48807
commit
abcf8f19b3
25 changed files with 1490 additions and 1337 deletions
|
@ -119,6 +119,17 @@ public class ThdlDebug {
|
|||
System.exit(1);
|
||||
}
|
||||
|
||||
/** Exits the program the hard way. Don't ever call this for code
|
||||
that you expect to be executed. */
|
||||
public static void abort(String message) {
|
||||
System.err.println("THDL Internal Error. ABORTING.");
|
||||
if (null != message) {
|
||||
System.err.println(message);
|
||||
System.err.println("THDL Internal Error. ABORTING.");
|
||||
}
|
||||
System.exit(37);
|
||||
}
|
||||
|
||||
/** Sets it up so that a call to System.out or System.err prints
|
||||
* to standard output/error but ALSO prints to the log file named
|
||||
* (prefix + suffix). Be sure the log file name is a relative
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue