improve messaging for deleteresults
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / model / CdmErrorDialog.java
index 9d33e2a124d598eae1deb25ccde3a9571b38e96b..087fa83c40241b425b7a74348d0e6ec32dccabeb 100644 (file)
@@ -53,6 +53,26 @@ public       class CdmErrorDialog extends ErrorDialog {
                 message, status,
                 IStatus.OK| IStatus.INFO | IStatus.WARNING | IStatus.ERROR);
         this.stackTrace = stackTrace;
+
+
+    }
+
+    /**
+     * @param parentShell
+     * @param dialogTitle
+     * @param message
+     * @param status
+     * @param stackTrace
+     */
+    public CdmErrorDialog(Shell parentShell,
+            String dialogTitle,
+            String message,
+            IStatus status,
+            String stackTrace,
+            Object[] updatedObjects) {
+        this(parentShell, dialogTitle, message, status, stackTrace);
+        this.message = message == null ? status.getMessage()
+                : message + "\n " + status.getMessage(); //$NON-NLS-1$
     }
 
     /**
@@ -136,4 +156,6 @@ public      class CdmErrorDialog extends ErrorDialog {
                        new Transfer[] { TextTransfer.getInstance() });
            }
        }
+
+
 }