| author | shawn.f.cook | 2011-11-01 15:34:22 (EDT) |
|---|---|---|
| committer | Roberto E. Escobar | 2011-11-01 15:34:22 (EDT) |
| commit | a9d0103088be3544e93e38db0f4e283d7006abaa (patch) (side-by-side diff) | |
| tree | c78b116e07b3107730f04a3917e4252f3b73946c | |
| parent | ecac14415f89abd6ebe1dd0ea192da377491e009 (diff) | |
| download | org.eclipse.osee-a9d0103088be3544e93e38db0f4e283d7006abaa.zip org.eclipse.osee-a9d0103088be3544e93e38db0f4e283d7006abaa.tar.gz org.eclipse.osee-a9d0103088be3544e93e38db0f4e283d7006abaa.tar.bz2 | |
feature[ats_18K4T]: ExceptionDialog now logs messages
| -rw-r--r-- | plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java index a9780e9..70be342 100644 --- a/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java +++ b/plugins/org.eclipse.osee.display.view.web/src/org/eclipse/osee/display/view/web/components/OseeExceptionDialogComponent.java @@ -63,28 +63,37 @@ public class OseeExceptionDialogComponent extends Window implements EmailView { switch (msgType) { case MSGTYPE_ERROR: + ComponentUtility.logError("OseeExceptionDialogComponent.[ctor] - ERROR: [%s] %s", mainWindow, shortMsg, + longMsg); msgTypeLabel.setCaption("Error!"); msgTypeLabel.setStyleName(CssConstants.OSEE_EXCEPTION_ERROR_TITLE_TEXT); break; case MSGTYPE_WARNING: + ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: [%s] %s", mainWindow, shortMsg, + longMsg); msgTypeLabel.setCaption("Warning:"); msgTypeLabel.setStyleName(CssConstants.OSEE_EXCEPTION_WARNING_TITLE_TEXT); break; default: ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: invalid or unhandled msgType.", - this); + mainWindow); break; } shortMsgLabel.setCaption(shortMsg); - longMsgTextArea.setValue(longMsg); + StringBuilder sb = new StringBuilder(); + sb.append("["); + sb.append(shortMsg); + sb.append("]\n"); + sb.append(longMsg); + longMsgTextArea.setValue(sb.toString()); if (mainWindow != null) { mainWindow.addWindow(this); moveToCenter(); focus(); } else { - ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: null value detected.", this); + ComponentUtility.logWarn("OseeExceptionDialogComponent.[ctor] - WARNING: null value detected.", mainWindow); } } |

