fix #4657
[taxeditor.git] / eu.etaxonomy.taxeditor.application / src / main / java / eu / etaxonomy / taxeditor / ApplicationWorkbenchAdvisor.java
index 73c0052c8ac336b59fb2e42f7a307398fa9e5787..420eaf0b189ad65fc6a3b5c1497af8be9b563f16 100644 (file)
@@ -135,9 +135,15 @@ public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
                                    true);
 
                        } else if (t != null && ("Widget is disposed".equals(t.getMessage()))){
-                    MessagingUtils.warn(this.getClass(), t.getMessage());
+                    MessagingUtils.warn(this.getClass(), t);
                     if (PreferencesUtil.isDebugMode()){
-                        MessagingUtils.warningDialog("Widget is disposed", null, t.getMessage());
+                        MessagingUtils.errorDialog("Widget is disposed",
+                                null,
+                                MessagingUtils.WIDGET_IS_DISPOSED_MESSAGE,
+                                statusAdapter.getStatus().getPlugin(),
+                                t,
+                                true);
+
                     }
                 }
                    }