From 79b3b973262649b4d0f06b4ff1cca84f0952deb7 Mon Sep 17 00:00:00 2001 From: dchandler Date: Sun, 13 Jul 2003 23:19:11 +0000 Subject: [PATCH] Remove warning message from menu item. --- source/org/thdl/tib/input/Jskad.java | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/source/org/thdl/tib/input/Jskad.java b/source/org/thdl/tib/input/Jskad.java index acf6744..51fd781 100644 --- a/source/org/thdl/tib/input/Jskad.java +++ b/source/org/thdl/tib/input/Jskad.java @@ -237,12 +237,19 @@ public class Jskad extends JPanel implements DocumentListener { String whereToStart = ThdlOptions.getStringOption("thdl.Jskad.working.directory", null); - fileChooser - = new JFileChooser((whereToStart == null) - ? null - : (whereToStart.equals("") - ? null - : whereToStart)); + try { + fileChooser + = new JFileChooser((whereToStart == null) + ? null + : (whereToStart.equals("") + ? null + : whereToStart)); + } catch (NullPointerException e) { + // This weirdness happens to me when I edit .java + // files in the midst of an 'ant clean jskad-run': + System.err.println("Jskad was not cleanly compiled; please rebuild!"); + System.exit(1); + } rtfFilter = new RTFFilter(); txtFilter = new TXTFilter(); fileChooser.addChoosableFileFilter(rtfFilter); @@ -484,7 +491,7 @@ public class Jskad extends JPanel implements DocumentListener { } }); - JMenuItem toUnicodeItem = new JMenuItem("Convert Tibetan to Unicode (not perfect yet)"); // DLC FIXME: do it just in the selection? + JMenuItem toUnicodeItem = new JMenuItem("Convert Tibetan to Unicode"); // DLC FIXME: do it just in the selection? toUnicodeItem.addActionListener(new ThdlActionListener() { public void theRealActionPerformed(ActionEvent e) { StringBuffer errors = new StringBuffer();