Remove warning message from menu item.

This commit is contained in:
dchandler 2003-07-13 23:19:11 +00:00
parent c986684beb
commit 79b3b97326

View file

@ -237,12 +237,19 @@ public class Jskad extends JPanel implements DocumentListener {
String whereToStart String whereToStart
= ThdlOptions.getStringOption("thdl.Jskad.working.directory", = ThdlOptions.getStringOption("thdl.Jskad.working.directory",
null); null);
fileChooser try {
= new JFileChooser((whereToStart == null) fileChooser
? null = new JFileChooser((whereToStart == null)
: (whereToStart.equals("") ? null
? null : (whereToStart.equals("")
: whereToStart)); ? 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(); rtfFilter = new RTFFilter();
txtFilter = new TXTFilter(); txtFilter = new TXTFilter();
fileChooser.addChoosableFileFilter(rtfFilter); 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() { toUnicodeItem.addActionListener(new ThdlActionListener() {
public void theRealActionPerformed(ActionEvent e) { public void theRealActionPerformed(ActionEvent e) {
StringBuffer errors = new StringBuffer(); StringBuffer errors = new StringBuffer();