From 675f41de583b48b730d3c8cb0d599d8c44d95b52 Mon Sep 17 00:00:00 2001
From: Daniel Ratiu <ratiu@fortiss.org>
Date: Fri, 21 Sep 2012 15:16:53 +0000
Subject: [PATCH] improvements in the nightly analyses + checking the MSCs
 feasibility refs 967,978

---
 .../base/ui/dialog/MessageUtilsExtended.java  | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/dialog/MessageUtilsExtended.java

diff --git a/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/dialog/MessageUtilsExtended.java b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/dialog/MessageUtilsExtended.java
new file mode 100644
index 000000000..405c738d7
--- /dev/null
+++ b/org.fortiss.tooling.base.ui/trunk/src/org/fortiss/tooling/base/ui/dialog/MessageUtilsExtended.java
@@ -0,0 +1,47 @@
+/*--------------------------------------------------------------------------+
+$Id: codetemplates.xml 1 2011-01-01 00:00:01Z hoelzl $
+|                                                                          |
+| Copyright 2012 ForTISS GmbH                     |
+|                                                                          |
+| Licensed under the Apache License, Version 2.0 (the "License");          |
+| you may not use this file except in compliance with the License.         |
+| You may obtain a copy of the License at                                  |
+|                                                                          |
+|    http://www.apache.org/licenses/LICENSE-2.0                            |
+|                                                                          |
+| Unless required by applicable law or agreed to in writing, software      |
+| distributed under the License is distributed on an "AS IS" BASIS,        |
+| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
+| See the License for the specific language governing permissions and      |
+| limitations under the License.                                           |
++--------------------------------------------------------------------------*/
+package org.fortiss.tooling.base.ui.dialog;
+
+import org.conqat.ide.commons.ui.dialog.MessageUtils;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * This class contains additional methods w.r.t. {@link MessageUtils}.
+ * 
+ * @author bugariu
+ * @author $Author: hoelzl $
+ * @version $Rev: 18709 $
+ * @ConQAT.Rating YELLOW Hash: CD929ED7F7EE80401952345E7B58AFAF
+ */
+public class MessageUtilsExtended {
+
+	/** Opens an info dialog in the UI thread. */
+	public static void showInfoInUIThread(final String title, final String message) {
+		syncExec(new Runnable() {
+			@Override
+			public void run() {
+				MessageUtils.showInfo(title, message);
+			}
+		});
+	}
+
+	/** Execute runnable in the UI thread */
+	private static void syncExec(Runnable runnable) {
+		Display.getDefault().syncExec(runnable);
+	}
+}
-- 
GitLab