]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.utils.ui/src/org/simantics/utils/ui/ExceptionUtils.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.utils.ui / src / org / simantics / utils / ui / ExceptionUtils.java
index 42526b898fd7b990aa482c68469e1d913d085d25..c744cc4752bb779bb3fda21612c5a1640ba43bc9 100644 (file)
@@ -1,65 +1,65 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.utils.ui;\r
-\r
-import org.simantics.utils.ui.dialogs.ShowError;\r
-\r
-\r
-/**\r
- * \r
- * @author Toni Kalajainen\r
- */\r
-public class ExceptionUtils {\r
-\r
-    public static void logWarning(String msg) {\r
-        Exception e = new Exception(msg);\r
-        ErrorLogger.getDefault().logWarning(msg, e);\r
-    }\r
-\r
-    public static void logWarning(String msg, Throwable e) {\r
-        e = new Exception(msg, e);\r
-        ErrorLogger.getDefault().logWarning(msg, e);\r
-    }\r
-\r
-    public static void logError(Throwable e) {\r
-        ErrorLogger.defaultLogError(e);\r
-    }\r
-\r
-    public static void logError(String msg, Throwable e) {\r
-        e = new Exception(msg, e);\r
-        ErrorLogger.getDefault().logError(msg, e);\r
-    }\r
-\r
-    public static void logAndShowError(Throwable e) {\r
-        ErrorLogger.defaultLogError(e);\r
-        ShowError.showError("Error", e.getMessage(),e);\r
-    }\r
-    \r
-    public static void logAndShowError(String message, Throwable e) {\r
-        ErrorLogger.defaultLogError(message,e);\r
-        ShowError.showError("Error", message,e);\r
-    }\r
-\r
-    public static void logAndShowError(String title, String message, Throwable e) {\r
-        ErrorLogger.defaultLogError(message,e);\r
-        ShowError.showError(title, message,e);\r
-    }\r
-\r
-    public static void showError(Throwable e) {\r
-        ShowError.showError("Error", e.getMessage(),e);\r
-    }\r
-    \r
-    public static void showError(String message, Throwable e) {\r
-               ShowError.showError("Error", message,e);\r
-    }\r
-\r
-}\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.utils.ui;
+
+import org.simantics.utils.ui.dialogs.ShowError;
+
+
+/**
+ * 
+ * @author Toni Kalajainen
+ */
+public class ExceptionUtils {
+
+    public static void logWarning(String msg) {
+        Exception e = new Exception(msg);
+        ErrorLogger.getDefault().logWarning(msg, e);
+    }
+
+    public static void logWarning(String msg, Throwable e) {
+        e = new Exception(msg, e);
+        ErrorLogger.getDefault().logWarning(msg, e);
+    }
+
+    public static void logError(Throwable e) {
+        ErrorLogger.defaultLogError(e);
+    }
+
+    public static void logError(String msg, Throwable e) {
+        e = new Exception(msg, e);
+        ErrorLogger.getDefault().logError(msg, e);
+    }
+
+    public static void logAndShowError(Throwable e) {
+        ErrorLogger.defaultLogError(e);
+        ShowError.showError("Error", e.getMessage(),e);
+    }
+    
+    public static void logAndShowError(String message, Throwable e) {
+        ErrorLogger.defaultLogError(message,e);
+        ShowError.showError("Error", message,e);
+    }
+
+    public static void logAndShowError(String title, String message, Throwable e) {
+        ErrorLogger.defaultLogError(message,e);
+        ShowError.showError(title, message,e);
+    }
+
+    public static void showError(Throwable e) {
+        ShowError.showError("Error", e.getMessage(),e);
+    }
+    
+    public static void showError(String message, Throwable e) {
+               ShowError.showError("Error", message,e);
+    }
+
+}