String dialogTitle,
String message,
IStatus status,
- String stackTrace) {
+ String stackTrace,
+ boolean showStatusMessage) {
super(parentShell,
dialogTitle,
message, status,
IStatus.OK| IStatus.INFO | IStatus.WARNING | IStatus.ERROR);
this.stackTrace = stackTrace;
-
-
+ String statusMessage = "";
+ if(showStatusMessage) {
+ statusMessage = status.getMessage();
+ }
+ this.message = message == null ? statusMessage : message + "\n " + statusMessage;
}
- /**
- * @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$
- }
/**
* @param parentShell
String dialogTitle,
String message,
IStatus status) {
- this(parentShell, dialogTitle, message, status, "");
+ this(parentShell, dialogTitle, message, status, "", true);
}
/* (non-Javadoc)