setupGUI();
SwingUtilities.invokeLater(new Runnable() {
public void run() {
configuration.setCliMode(false);
Application app = new DefaultApplication();
MainFrame mainFrame = new MainFrame(options.getInputFile());
app.addApplicationListener(mainFrame.getApplicationListener());
mainFrame.setVisible(true);
}
});
} else {
runCliLoop();
}