Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2015-09-16 12:48:48 +0000
committerJuergen Haug2015-09-16 12:48:48 +0000
commit4669701f21123d26671c7715e938a2e473a9ddf6 (patch)
treee86eea99f65a787d5c1129a82dfc915b56e2dafa /plugins/org.eclipse.etrice.ui.common.base
parentd2f7cb6354da0cc1321b49536819eb94af415c70 (diff)
downloadorg.eclipse.etrice-4669701f21123d26671c7715e938a2e473a9ddf6.tar.gz
org.eclipse.etrice-4669701f21123d26671c7715e938a2e473a9ddf6.tar.xz
org.eclipse.etrice-4669701f21123d26671c7715e938a2e473a9ddf6.zip
[ui] added validation messages to error dialog
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.common.base')
-rw-r--r--plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/editor/DiagramEditorBase.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/editor/DiagramEditorBase.java b/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/editor/DiagramEditorBase.java
index e9077eeff..1e5768c6f 100644
--- a/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/editor/DiagramEditorBase.java
+++ b/plugins/org.eclipse.etrice.ui.common.base/src/org/eclipse/etrice/ui/common/base/editor/DiagramEditorBase.java
@@ -21,6 +21,7 @@ import java.util.Map;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Status;
@@ -205,7 +206,10 @@ public abstract class DiagramEditorBase extends DiagramEditor implements IInputU
}
}
if (error) {
- MessageDialog.openError(Display.getDefault().getActiveShell(), "ERROR", "Internal error: model is invalid, can't save");
+ StringBuilder messges = new StringBuilder();
+ for(IStatus status : ms.getChildren())
+ messges.append(status.getMessage()+"\n");
+ MessageDialog.openError(Display.getDefault().getActiveShell(), "ERROR", "Internal error: model is invalid, can't save:\n\n"+messges);
UIBaseActivator.getDefault().getLog().log(ms);
return false;
}

Back to the top