[Schmitzm-commits] r1314 - trunk/src/schmitzm/swing

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Nov 28 23:20:02 CET 2010


Author: alfonx
Date: 2010-11-28 23:20:02 +0100 (Sun, 28 Nov 2010)
New Revision: 1314

Modified:
   trunk/src/schmitzm/swing/ExceptionDialog.java
Log:
ExceptionDialog defaults to additional infos with os.name and java.io.tmp

Modified: trunk/src/schmitzm/swing/ExceptionDialog.java
===================================================================
--- trunk/src/schmitzm/swing/ExceptionDialog.java	2010-11-28 22:14:52 UTC (rev 1313)
+++ trunk/src/schmitzm/swing/ExceptionDialog.java	2010-11-28 22:20:02 UTC (rev 1314)
@@ -49,6 +49,8 @@
 import javax.swing.JToggleButton;
 import javax.swing.SwingUtilities;
 
+import org.apache.commons.lang.SystemUtils;
+
 import schmitzm.lang.LangUtil;
 import schmitzm.mail.MailUtil;
 import schmitzm.mail.Mailer;
@@ -78,6 +80,11 @@
 	 * by mail)
 	 */
 	private static Set<Object> additionalAppInfo = new TreeSet<Object>();
+	static {
+		additionalAppInfo.add("os.name =" + System.getProperty("os.name"));
+		additionalAppInfo.add("Java IO temporary directory ="
+				+ SystemUtils.getJavaIoTmpDir());
+	}
 
 	/** Speichert den angezeigten Fehler. */
 	protected Throwable err = null;



More information about the Schmitzm-commits mailing list