From: elee <gk...@us...> - 2008-05-22 01:14:40
|
Update of /cvsroot/gmod/apollo/src/java/apollo/main In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv23375/main Modified Files: Apollo.java Log Message: + Added Config.isHeadlessApplication() to check whether the application is running in headless mode + Checks if application is running in headless mode in main.Apollo and only creates a JOptionPane with error messages if it's not running in headless mode Index: Apollo.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/main/Apollo.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** Apollo.java 6 May 2008 01:24:29 -0000 1.22 --- Apollo.java 22 May 2008 01:14:42 -0000 1.23 *************** *** 236,245 **** } catch (Exception e) { // should catch RuntimeException ! JOptionPane.showMessageDialog( ! null, ! e, ! "Warning", ! JOptionPane.WARNING_MESSAGE ! ); logger.fatal("Exception in Apollo.mainRun() thread", e); System.exit(2); --- 236,247 ---- } catch (Exception e) { // should catch RuntimeException ! if (!Config.isHeadlessApplication()) { ! JOptionPane.showMessageDialog( ! null, ! e, ! "Warning", ! JOptionPane.WARNING_MESSAGE ! ); ! } logger.fatal("Exception in Apollo.mainRun() thread", e); System.exit(2); |