Tweaked the converter GUI so that you can open the old and the new files

with the external viewer.
This commit is contained in:
dchandler 2003-06-29 16:45:15 +00:00
parent 3f76c3692d
commit 646e23b4a4
2 changed files with 74 additions and 113 deletions

View file

@ -422,20 +422,12 @@ public class Jskad extends JPanel implements DocumentListener {
JMenuItem converterItem = new JMenuItem("Launch Converter...");
converterItem.addActionListener(new ThdlActionListener() {
public void theRealActionPerformed(ActionEvent e) {
int rv = ConverterGUI.realMain(new String[] { },
System.out,
((parentObject instanceof Frame)
? (Frame)parentObject
: null));
if (rv == 0) {
JOptionPane.showMessageDialog(Jskad.this,
"Converter closed normally.",
"Converter Done", JOptionPane.PLAIN_MESSAGE);
} else {
JOptionPane.showMessageDialog(Jskad.this,
"Converter closed abnormally.",
"Converter Error", JOptionPane.ERROR_MESSAGE);
}
// ignore the return value:
ConverterGUI.realMain(new String[] { },
System.out,
((parentObject instanceof Frame)
? (Frame)parentObject
: null));
}
});
toolsMenu.addSeparator();