Added Javadoc files overview.html and several package.html files.

Added a "Quit" option to Savant's File menu.  Factored out the Close
option in doing so.

Exceptions in many action listeners are now handled by
org.thdl.util.ThdlActionListener or org.thdl.util.ThdlAbstractAction.

Many exceptions that we used to just log now optionally cause aborts.
This option is on by default for developers using 'ant savant-run'-style
targets, but it is off for users.

An erroneous CLASSPATH now causes a useful error message in almost
all situations.

Fixed some typos and bad links in Javadoc comments.

Added a simple assertion facility, but the overhead is suffered even in
release builds.

Factored out the code that sets up log files like savant.log and jskad.log.
This commit is contained in:
dchandler 2002-10-06 18:23:27 +00:00
parent 14adf0d607
commit 403f21c8db
47 changed files with 2439 additions and 1567 deletions

View file

@ -36,6 +36,9 @@ class AboutDialog extends Dialog implements ActionListener, WindowListener
setSize(240,300); // the size ipaq's window.
}
/* FIXME: what happens if this throws an exception? We'll just
see it on the console--it won't terminate the program. And the
user may not see the console! See ThdlActionListener. -DC */
public void actionPerformed(ActionEvent e)
{
hide();
@ -116,4 +119,4 @@ class AboutDialog extends Dialog implements ActionListener, WindowListener
public void windowOpened(WindowEvent e)
{
}
}
}

View file

@ -42,7 +42,7 @@ import org.thdl.tib.text.TibetanDocument;
@author Andrés Montano Pellegrini
@see RemoteScannerFilter
@see ScannerPannel
@see ScannerPanel
*/
public class AppletScannerFilter extends JApplet implements ActionListener, FocusListener, ItemListener
{
@ -154,6 +154,9 @@ public class AppletScannerFilter extends JApplet implements ActionListener, Focu
/* mnuEdit.setEnabled(false);
objModified=null;*/
}
/* FIXME: what happens if this throws an exception? We'll just
see it on the console--it won't terminate the program. And the
user may not see the console! See ThdlActionListener. -DC */
public void actionPerformed(ActionEvent e)
{
Object clicked = e.getSource();

View file

@ -28,7 +28,7 @@ public class DictionarySource
{
private int dicts;
/** Last bit of word. 1 if there are more brothers.*/
/** Last bit of word; 1 if there are more brothers.*/
private static final int lastBit=32768;
private static final int allDicts=lastBit-1;
@ -134,4 +134,4 @@ public class DictionarySource
{
dicts = 0;
}
}
}

View file

@ -19,16 +19,16 @@ package org.thdl.tib.scanner;
import java.io.*;
/** Searches the words directly in a file; not the prefered
/** Searches the words directly in a file; not the preferred
implementation. The search is too slow!
The prefered implementation is the CachedSyllableList.
The preferred implementation is the CachedSyllableListTree.
<p>The words must be stored in a binary file tree structure format.
This can be done using the BinaryFileGenerator.</p>
@author Andr&eacute;s Montano Pellegrini
@see TibetanScanner
@see CachedSyllableList
@see CachedSyllableListTree
@see BinaryFileGenerator
*/
@ -158,4 +158,4 @@ public class FileSyllableListTree implements SyllableListTree
}
return null;
}
}
}

View file

@ -167,6 +167,9 @@ public abstract class ScannerPanel extends Panel implements ActionListener
}
}
/* FIXME: what happens if this throws an exception? We'll just
see it on the console--it won't terminate the program. And the
user may not see the console! See ThdlActionListener. -DC */
public void actionPerformed(ActionEvent e)
{
translate();
@ -176,4 +179,4 @@ public abstract class ScannerPanel extends Panel implements ActionListener
public abstract void clear();
public void setEnableTibetanScript(boolean enabled) {}
public void addFocusListener(FocusListener fl) {}
}
}

View file

@ -246,7 +246,10 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
mnuDelete.setEnabled(false);
mnuSelectAll.setEnabled(false);
}
/* FIXME: what happens if this throws an exception? We'll just
see it on the console--it won't terminate the program. And the
user may not see the console! See ThdlActionListener. -DC */
public void actionPerformed(ActionEvent e)
{
Object clicked = e.getSource();

View file

@ -0,0 +1,21 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!--
@(#)package.html
-->
</head>
<body bgcolor="white">
Provides classes and methods for translating Tibetan text to English.
<p>
Right now, this package scans Tibetan text, but we aim to make it parse Tibetan text.
<p>
Author: Andr&eacute;s Montano Pellegrini
<p>
<h2>Related Documentation</h2>
@see <a href="../text/package-summary.html">org.thdl.tib.text</a>
@see <a href="../input/package-summary.html">org.thdl.tib.input</a>
</body>
</html>