Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DialogPopupLoggerListener.java18
1 files changed, 7 insertions, 11 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DialogPopupLoggerListener.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DialogPopupLoggerListener.java
index e62d57e5b03..db32b2242ac 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DialogPopupLoggerListener.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/DialogPopupLoggerListener.java
@@ -29,27 +29,23 @@ public class DialogPopupLoggerListener implements ILoggerListener {
@Override
public void log(String loggerName, Level level, String message, Throwable th) {
if (level == OseeLevel.SEVERE_POPUP) {
- String title = "OSEE Error";
- String messageText = message;
- String reasonMessage = "";
- if (th != null) {
- reasonMessage = th.getMessage();
- }
+ final String title = "OSEE Error";
final IStatus status;
+ final String realMessageText;
if (th != null) {
List<IStatus> exc = new ArrayList<IStatus>();
exceptionToString(true, loggerName, th, exc);
status =
- new MultiStatus(loggerName, IStatus.ERROR, exc.toArray(new IStatus[exc.size()]), reasonMessage, th);
+ new MultiStatus(loggerName, IStatus.ERROR, exc.toArray(new IStatus[exc.size()]), th.getMessage(), th);
+ realMessageText = message;
} else {
- status = new Status(IStatus.ERROR, loggerName, -20, reasonMessage, th);
+ status = new Status(IStatus.ERROR, loggerName, -20, message, th);
+ realMessageText = null;
}
- final String realTitle = title;
- final String realMessageText = messageText;
Displays.pendInDisplayThread(new Runnable() {
@Override
public void run() {
- ErrorDialog.openError(Displays.getActiveShell(), realTitle, realMessageText, status);
+ ErrorDialog.openError(Displays.getActiveShell(), title, realMessageText, status);
}
});
}

Back to the top