feature: Add aircraft configuration to display
Change-Id: Ifb66824b7c5992c43c1463808442c8321542ca05
Signed-off-by: Walter Vorhees <walter.vorhees@boeing.com>
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/Config.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/Config.java
index 1c18290..06d77ae 100644
--- a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/Config.java
+++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/Config.java
@@ -24,7 +24,7 @@
@Override
public Object createStartElementFoundObject(String uri, String localName, String name, Attributes attributes) {
- return new ConfigData(attributes.getValue("machineName"));
+ return new ConfigData(attributes.getValue("machineName"), attributes.getValue("uutConfiguration"));
}
}
diff --git a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/ConfigData.java b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/ConfigData.java
index 5fa71f6..8ef9394 100644
--- a/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/ConfigData.java
+++ b/org.eclipse.osee.ote.core/src/org/eclipse/osee/ote/core/framework/saxparse/elements/ConfigData.java
@@ -15,15 +15,23 @@
*/
public class ConfigData {
private final String machineName;
+ private final String UutConfiguration;
/**
* @return the machineName
*/
public String getMachineName() {
+
return machineName;
}
- public ConfigData(String machineName) {
+ public String getUutConfiguration() {
+
+ return UutConfiguration;
+ }
+
+ public ConfigData(String machineName, String UutConfiguration) {
this.machineName = machineName;
+ this.UutConfiguration = UutConfiguration;
}
}
diff --git a/org.eclipse.osee.ote.ui.output/src/org/eclipse/osee/ote/ui/output/editors/ProcessOutfileOverview.java b/org.eclipse.osee.ote.ui.output/src/org/eclipse/osee/ote/ui/output/editors/ProcessOutfileOverview.java
index a7e84b1..37f7d00 100644
--- a/org.eclipse.osee.ote.ui.output/src/org/eclipse/osee/ote/ui/output/editors/ProcessOutfileOverview.java
+++ b/org.eclipse.osee.ote.ui.output/src/org/eclipse/osee/ote/ui/output/editors/ProcessOutfileOverview.java
@@ -25,7 +25,6 @@
import org.eclipse.osee.ote.core.framework.saxparse.OteSaxHandler;
import org.eclipse.osee.ote.core.framework.saxparse.elements.CheckGroupData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.ConfigData;
-import org.eclipse.osee.ote.core.framework.saxparse.elements.UutErrorEntryData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.OteLogData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.QualificationData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.RetryGroupData;
@@ -36,6 +35,7 @@
import org.eclipse.osee.ote.core.framework.saxparse.elements.TestPointResultsData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.TimeSummaryData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.UserData;
+import org.eclipse.osee.ote.core.framework.saxparse.elements.UutErrorEntryData;
import org.eclipse.osee.ote.core.framework.saxparse.elements.VersionData;
import org.eclipse.osee.ote.ui.markers.MarkerPlugin;
import org.eclipse.osee.ote.ui.output.Activator;
@@ -120,6 +120,9 @@
public void onStartElement(Object obj) {
ConfigData data = (ConfigData) obj;
callback.addOverviewData("Host Machine", data.getMachineName());
+ if (data.getUutConfiguration() != null && data.getUutConfiguration().length() > 0) {
+ callback.addOverviewData("Unit Under Test Configuration", data.getUutConfiguration());
+ }
}
});