Commit df33f499 authored by Dongyue Mou's avatar Dongyue Mou
Browse files

fixed bug where undirected requirement relations may not be displayed in the view

refs 96
parent e8e36ca2
......@@ -164,7 +164,7 @@ public class RequirementHierarchyView extends ViewPart {
for (IConnector co : ((Node) parent).req.getConnectors()) {
for (IConnection conn : co.getIncomingList())
for (IConnection conn : co.getIncomingList()) {
if (conn.getSource() != null
&& conn.getSource().eContainer() != null) {
Category c = new Category(
......@@ -174,10 +174,10 @@ public class RequirementHierarchyView extends ViewPart {
.getHandler(conn));
children.put(getText(c), c);
}
}
for (IConnection conn : co.getOutgoingList())
if (conn instanceof DirectedRequirementRelation
&& conn.getTarget() != null
for (IConnection conn : co.getOutgoingList()) {
if (conn.getTarget() != null
&& conn.getTarget().eContainer() != null) {
Category c = new Category(
(Node) parent,
......@@ -186,6 +186,7 @@ public class RequirementHierarchyView extends ViewPart {
.getHandler(conn));
children.put(getText(c), c);
}
}
}
List<Category> categories = new ArrayList<Category>();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment