This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 8360 - Children.findChild(String name) doesn't wait until nodes are created?
Summary: Children.findChild(String name) doesn't wait until nodes are created?
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 normal (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks: 8397
  Show dependency tree
 
Reported: 2000-11-10 16:00 UTC by Tomas Pavek
Modified: 2008-12-22 15:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2000-11-10 16:00:13 UTC
Select "Find" on any data folder, let the finder find result nodes, select some
and click on iconed button "Show node in explorer". This should find the node
in hieararchy of main explorer. But it doesn't work - until you expand all
nodes in explorer on the path to the found node.
This worked until dev. build 55, in build 56 it doesn't. I guess the problem is
somewhere in org.openide.loaders.FolderChildren (replacing it in 56 from 55
makes it work). Implementation of findChild method looks like it is intended to
wait for nodes creation, or not?
The code for finding in nodes hierarchy is in module utilities
(org.netbeans.modules.search.ResultViewTopComponent.LocationInfoPanel).
Comment 1 _ ttran 2000-11-21 10:48:59 UTC
this bug blocks #8397, I upped the prio
Comment 2 akemr 2000-11-24 14:22:59 UTC
Fixed in main trunk and in NB 3.1 - will be in dev_build78 (release31_build15)

Method findChild will wait for finishing last task that refreshes the children
nodes, if it's not in readAccess.
Comment 3 Quality Engineering 2003-07-01 15:54:46 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified
Comment 4 Quality Engineering 2003-07-01 16:13:34 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.