Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 54436 - Root node claims no nodes were found but there are some nodes displayed
Root node claims no nodes were found but there are some nodes displayed
Product: utilities
Classification: Unclassified
Component: Search
PC Linux
: P3 (vote)
: 4.x
Assigned To: Marian Petras
Depends on:
  Show dependency treegraph
Reported: 2005-02-03 08:32 UTC by Marian Petras
Modified: 2005-02-03 10:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Marian Petras 2005-02-03 08:32:17 UTC
Sometimes, when searching a very small directory,
the Search Results window display found nodes but
the root node claims that "No matching nodes were
found." It seems that the set of displayed nodes
is correct, only the text of the root node is wrong.
Comment 1 Marian Petras 2005-02-03 08:43:11 UTC
The bug is in method Manager.startSearching(...). It calls
callOnWindowFromAWT("setResultModel", resultModel). This call
schedules method call ResultView.setResultModel(resultModel) to the
end of the AWT event queue (invokeLater(...)). If a matching node is
found before this call is processed, the result model does not notify
the root node so that it is not updated.
Comment 2 Marian Petras 2005-02-03 10:37:29 UTC
Fixed in the trunk.

I fixed the bug by replacing calls of EventQueue.invokeLater(...) with
EventQueue.invokeAndWait(...). I also reviewed which methods are
called from which threads and removed some unncessary redirections to
the AWT dispatch thread.

Modified files:


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo