Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarvin Mueller2015-08-10 09:36:38 +0000
committerMarvin Mueller2015-08-10 09:54:46 +0000
commitbf7cd327a54f6c83fe34d86cc71bd1c8dfd10eea (patch)
treef9a581ca8eb248b78b81c130f39c845dafbb6b84 /org.eclipse.jubula.client.ui.rcp
parent86537c1cac9ff8af6b2f589bf14643aadd585af5 (diff)
downloadorg.eclipse.jubula.core-bf7cd327a54f6c83fe34d86cc71bd1c8dfd10eea.tar.gz
org.eclipse.jubula.core-bf7cd327a54f6c83fe34d86cc71bd1c8dfd10eea.tar.xz
org.eclipse.jubula.core-bf7cd327a54f6c83fe34d86cc71bd1c8dfd10eea.zip
Sprint task - Fix for http://eclip.se/472028
Modifing Open/Show specification to mange new generated nodes, which have no backing node context.
Diffstat (limited to 'org.eclipse.jubula.client.ui.rcp')
-rw-r--r--org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/businessprocess/UINodeBP.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/businessprocess/UINodeBP.java b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/businessprocess/UINodeBP.java
index ba374df3b..082e8e24b 100644
--- a/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/businessprocess/UINodeBP.java
+++ b/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/businessprocess/UINodeBP.java
@@ -22,8 +22,11 @@ import org.eclipse.jubula.client.core.events.InteractionEventDispatcher;
import org.eclipse.jubula.client.core.model.IExecTestCasePO;
import org.eclipse.jubula.client.core.model.INodePO;
import org.eclipse.jubula.client.core.model.ISpecTestCasePO;
+import org.eclipse.jubula.client.core.model.ITestCasePO;
import org.eclipse.jubula.client.core.model.NodeMaker;
import org.eclipse.jubula.client.core.model.TestResultNode;
+import org.eclipse.jubula.client.core.persistence.GeneralStorage;
+import org.eclipse.jubula.client.core.persistence.NodePM;
/**
@@ -71,6 +74,11 @@ public class UINodeBP {
} else if (firstElement instanceof TestResultNode) {
TestResultNode trNode = (TestResultNode)firstElement;
INodePO nodePO = trNode.getNode();
+ if (nodePO instanceof ITestCasePO
+ && !(nodePO instanceof IExecTestCasePO)) {
+ nodePO = NodePM.getNode(GeneralStorage.getInstance()
+ .getProject().getId(), nodePO.getGuid());
+ }
while (!(nodePO instanceof IExecTestCasePO)) {
trNode = trNode.getParent();
if (trNode == null) {

Back to the top