- public synchronized Object[] getChildren() {
- if (isLoaded()) {
- return super.getChildren();
- } else {
- // initialize current object
- try {
- if (node != null) {
- NodeIterator ni = node.getNodes();
- while (ni.hasNext()) {
- Node currNode = ni.nextNode();
- if (currNode.isNodeType(SlcTypes.SLC_TEST_RESULT))
- addChild(new SingleResultNode(this, node, node
- .getProperty(SlcNames.SLC_TEST_CASE)
- .getString()));
- else if (currNode
- .isNodeType(SlcTypes.SLC_RESULT_FOLDER))
- addChild(new VirtualFolder(this, node,
- node.getName()));
- }
+ protected void 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);