node.setRunnable(false);
}
}
-// if (node.getChildren() != null) {
-// for (Iterator it = node.getChildren().iterator(); it.hasNext(); ) {
-// IProgramElement IProgramElement = (IProgramElement)it.next();
-// if (acceptNode(IProgramElement, properties)) {
-// children.add(createViewNode(IProgramElement, properties));
-// }
-// }
-// }
+ if (node.getChildren() != null) {
+ for (Iterator it = node.getChildren().iterator(); it.hasNext(); ) {
+ IProgramElement IProgramElement = (IProgramElement)it.next();
+ if (acceptNode(IProgramElement, properties)) {
+ children.add(createViewNode(IProgramElement, properties));
+ }
+ }
+ }
+
StructureViewNode viewNode = nodeFactory.createNode(node, children);//new TreeViewNode(root, null, children);
return viewNode;
}
}
}
}
- } else if (node instanceof IRelationship) {
- IRelationship relation = (IRelationship)node;
- return properties.getRelations().contains(relation);
+// } else if (node instanceof IRelationship) {
+// IRelationship relation = (IRelationship)node;
+// return properties.getRelations().contains(relation);
} else {
return true;
}
private StructureViewNode getRelations(IRelationship node) {
//StructureViewNode treeNode = new StructureViewNode(node);
StructureViewNode treeNode = nodeFactory.createNode(node);
- for (Iterator it = node.getTargets().iterator(); it.hasNext(); ) {
- treeNode.add(
- nodeFactory.createNode((IProgramElement)it.next())
- );
- }
+// for (Iterator it = node.getTargets().iterator(); it.hasNext(); ) {
+// treeNode.add(
+// nodeFactory.createNode((IProgramElement)it.next())
+// );
+// }
return treeNode;
}
} else {
setIcon(null);
}
-
+
if (node instanceof IProgramElement) {
// if (pNode.isRunnable()) {
// //setIcon(AjdeUIManager.getDefault().getIconRegistry().getExecuteIcon());
}
}
- } else if (node instanceof IRelationship) {
- this.setFont(new Font(this.getFont().getName(), Font.ITALIC, this.getFont().getSize()));
- }
-
+ }
+// else if (node instanceof IRelationship) {
+// this.setFont(new Font(this.getFont().getName(), Font.ITALIC, this.getFont().getSize()));
+// }
return this;
}
}