Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M Finkbeiner2013-08-16 21:58:26 +0000
committerRoberto E. Escobar2013-08-19 22:10:54 +0000
commit56a98f60ee9ca2ac93e587d2e4110c3b73e4ec30 (patch)
treeda54c94b256b21eea26ff2f4e18cf9b5d41c2f5c
parent107f465b0a4fc812a33f020fa1f7b920b566a5f8 (diff)
downloadorg.eclipse.osee-0.12.0.v201308210303_REL.tar.gz
org.eclipse.osee-0.12.0.v201308210303_REL.tar.xz
org.eclipse.osee-0.12.0.v201308210303_REL.zip
feature[ats_ZPP4V]: Improve tm error messages0.12.0.v201308210303_REL0.12.0.v201308192340_RC
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/PageManager.java4
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/jobs/ScriptRunJob.java5
-rw-r--r--plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/ScriptPage.java2
3 files changed, 8 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/PageManager.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/PageManager.java
index 203f582924c..e131dd37916 100644
--- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/PageManager.java
+++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/core/PageManager.java
@@ -137,9 +137,9 @@ public class PageManager {
builder.append("\n");
}
builder.append(page.getPageName());
- builder.append(" Page:[");
+ builder.append(" Page:\n");
builder.append(pageMessage);
- builder.append("]");
+ builder.append("\n");
}
}
return builder.toString();
diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/jobs/ScriptRunJob.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/jobs/ScriptRunJob.java
index 6de2391fea7..cf5394ebc51 100644
--- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/jobs/ScriptRunJob.java
+++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/jobs/ScriptRunJob.java
@@ -14,6 +14,7 @@ import java.io.File;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Level;
+
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
@@ -125,6 +126,10 @@ public class ScriptRunJob extends Job {
return this.testManagerEditor.getPageManager().areSettingsValidForRun();
}
+
+ public String getErrorMessage() {
+ return this.testManagerEditor.getPageManager().getErrorMessage();
+ }
private void clearMarkers() {
// TODO can we somehow wait until the script is actually run to remove
diff --git a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/ScriptPage.java b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/ScriptPage.java
index 040c1698160..fc5ba7d2dae 100644
--- a/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/ScriptPage.java
+++ b/plugins/org.eclipse.osee.ote.ui.test.manager/src/org/eclipse/osee/ote/ui/test/manager/pages/ScriptPage.java
@@ -372,7 +372,7 @@ public abstract class ScriptPage extends TestManagerPage {
runJob.setUser(true);
runJob.schedule();
} else {
- MessageDialog.openError(Displays.getActiveShell(), "Error", "Test Manager Settings Error");
+ MessageDialog.openError(Displays.getActiveShell(), "Error", runJob.getErrorMessage());
}
}

Back to the top