Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2012-09-10 21:08:29 +0000
committerdonald.g.dunne2012-09-10 21:22:33 +0000
commit9e861da3eb56b2b99c4a3f7ac8e365649d6933ac (patch)
tree637fa669327804de2c7decb165acae8d4de7beb8
parentd5e619b434b8e547d88eb2b3084f408e07040559 (diff)
downloadorg.eclipse.osee-9e861da3eb56b2b99c4a3f7ac8e365649d6933ac.tar.gz
org.eclipse.osee-9e861da3eb56b2b99c4a3f7ac8e365649d6933ac.tar.xz
org.eclipse.osee-9e861da3eb56b2b99c4a3f7ac8e365649d6933ac.zip
bug[ats_7SX6B]: Need fix for "Detailed Test Status Old" Blam
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java7
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java8
2 files changed, 9 insertions, 6 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
index b6a3470fac7..14185a321bc 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/operation/DetailedTestStatusOld.java
@@ -38,12 +38,10 @@ import org.eclipse.osee.ats.api.user.IAtsUser;
import org.eclipse.osee.ats.api.version.IAtsVersion;
import org.eclipse.osee.ats.core.client.config.IAtsProgram;
import org.eclipse.osee.ats.core.client.config.VersionsClient;
-import org.eclipse.osee.ats.core.client.config.store.VersionArtifactStore;
import org.eclipse.osee.ats.core.client.task.TaskArtifact;
import org.eclipse.osee.ats.core.client.team.TeamState;
import org.eclipse.osee.ats.core.client.team.TeamWorkFlowArtifact;
import org.eclipse.osee.ats.core.client.workflow.PercentCompleteTotalUtil;
-import org.eclipse.osee.ats.core.config.AtsConfigCache;
import org.eclipse.osee.ats.core.util.AtsObjects;
import org.eclipse.osee.ats.internal.Activator;
import org.eclipse.osee.ats.util.XVersionList;
@@ -230,9 +228,8 @@ public class DetailedTestStatusOld extends AbstractBlam {
File scriptDir = new File(variableMap.getString("Script Root Directory"));
versions = new ArrayList<IAtsVersion>();
- for (Artifact art : variableMap.getCollection(Artifact.class, "Versions")) {
- VersionArtifactStore store = new VersionArtifactStore(art, AtsConfigCache.instance);
- versions.add(store.getVersion());
+ for (IAtsVersion version : variableMap.getCollection(IAtsVersion.class, "Versions")) {
+ versions.add(version);
}
init();
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
index 073f3f98226..aecead999ac 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/blam/VariableMap.java
@@ -105,7 +105,13 @@ public class VariableMap {
@SuppressWarnings("unchecked")
public <T> Collection<T> getCollection(Class<T> clazz, String parameterName) throws OseeArgumentException {
- return getValue(Collection.class, parameterName);
+ List<T> results = new ArrayList<T>();
+ for (Object obj : getValue(Collection.class, parameterName)) {
+ if (clazz.isInstance(obj)) {
+ results.add((T) obj);
+ }
+ }
+ return results;
}
public User getUser(String parameterName) throws OseeArgumentException {

Back to the top