Index: FolderChildren.java =================================================================== RCS file: /cvs/openide/src/org/openide/loaders/FolderChildren.java,v retrieving revision 1.61 diff -r1.61 FolderChildren.java 142,150c142,143 < /** Improves the searching capability to wait till all children < * are found and then searching thru them. < */ < public Node findChild (final String name) { < // start the initialization < Node[] forget = getNodes (); // DO NOT DELETE < < // waits till the list of children is created < --- > /** waits till the list of children is created */ > private void waitForChildrenList() { 182c175 < initialize (name == null, false).waitFinished (); --- > initialize (true, false).waitFinished (); 184a178,186 > } > > public Node[] getNodes(boolean optimalResult) { > // start the initialization > Node[] forget = getNodes (); // DO NOT DELETE > > if (!optimalResult) { > return forget; > } 185a188,196 > waitForChildrenList(); > return super.getNodes(true); > } > > /** Improves the searching capability to wait till all children > * are found and then searching thru them. > */ > public Node findChild (final String name) { > waitForChildrenList();