- if (children != null)
- for (ResultParent child : children)
- addChild(child);
- }
-
- public void resetChildren(ResultParent[] children) {
- clearChildren();
- this.children = children;
- initialize();
+ try {
+ for (Node currNode : displayedNodes) {
+ if (currNode.isNodeType(SlcTypes.SLC_TEST_RESULT)) {
+ SingleResultNode srn = new SingleResultNode(this, currNode,
+ currNode.getProperty(SlcNames.SLC_TEST_CASE)
+ .getString());
+ addChild(srn);
+ }
+ }
+ } catch (RepositoryException re) {
+ throw new SlcException(
+ "Unexpected error while initializing ParentNodeFolder : "
+ + getName(), re);
+ }