From: elee <gk...@us...> - 2009-02-24 17:15:13
|
Update of /cvsroot/gmod/apollo/src/java/apollo/util In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20639/util Modified Files: IOUtil.java Log Message: + Added informationDialog() method Index: IOUtil.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/util/IOUtil.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** IOUtil.java 28 Jul 2008 22:21:00 -0000 1.32 --- IOUtil.java 24 Feb 2009 17:15:08 -0000 1.33 *************** *** 339,342 **** --- 339,354 ---- } + /** Display an information dialog box (if not running in headless mode or command line + * mode and outputs information to logger). + * + * @param msg - Message to be displayed + */ + public static void informationDialog(String msg) { + if (!apollo.main.CommandLine.isInCommandLineMode() && + !apollo.config.Config.isHeadlessApplication()) + JOptionPane.showMessageDialog(null, msg, "Information", JOptionPane.INFORMATION_MESSAGE); + logger.info(msg); + } + /** Makes InputStream from URL - throws DataAdapterException with * badUrlMessage if URL is not found, or with notFoundMessage if stream is empty |