Skip to content
Snippets Groups Projects
Commit 6004538e authored by Stefanie Gareis's avatar Stefanie Gareis
Browse files

Improved ErrorMessage for simulation speed

parent e4ac6099
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,20 @@ import org.eclipse.swt.widgets.Display;
*/
public class MessageUtilsExtended {
/** Temporary result for the asked question. */
private static boolean tempQuestionResult;
/** Asks question in the UI thread. */
public static boolean askQuestion(final String title, final String message) {
syncExec(new Runnable() {
@Override
public void run() {
tempQuestionResult = MessageUtils.askQuestion(title, message);
}
});
return tempQuestionResult;
}
/** Opens an info dialog in the UI thread. */
public static void showInfoInUIThread(final String title, final String message) {
syncExec(new Runnable() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment