summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2011-05-19 15:13:44 (EDT)
committerRyan D. Brooks2011-05-19 15:13:44 (EDT)
commite73da8b625d850e14d1a9813ff19a1194c4b5d85 (patch)
tree90eeb5489a1356de5422c20723ac8162cf2239ca
parent2ea846b754da9eda037c9807e2a924f7f2da26d8 (diff)
downloadorg.eclipse.osee-e73da8b625d850e14d1a9813ff19a1194c4b5d85.zip
org.eclipse.osee-e73da8b625d850e14d1a9813ff19a1194c4b5d85.tar.gz
org.eclipse.osee-e73da8b625d850e14d1a9813ff19a1194c4b5d85.tar.bz2
bug[bgz_346890]: DialogPopupLoggerListener not displaying reason
-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 e62d57e..db32b22 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);
}
});
}