NetBeans IDE 3.5 Beta (Build 200304142350)
When pressing the "Search" button on the "Find in
Files" dialog, the dialog just disappears as usual
but no results are diplayed.
I have NEVER seen this before in any build, even
in the last Q-build that I downloaded before the beta.
And I have used NetBeans quite a lot (written
hundereds of Java source files with it).
There is no error, no entry in the log. Just the
action is missing.
Windows open: Main, explorer, source editor, form
editor, property sheet. 1 external process running.
When I close and re-open the IDE, then it works again.
The condition is that a find result list is already open.
The search executes but the result list does not get focus.
FindInFiles is a part of component Utilities, reassigned.
I am able to reproduce it on Solaris 8 running on Sparc.
The code responsible for displaying the window with results is in
Last two lines of the method are
where 'resultWindow' is an instance of a subclass of TopComponent.
The fix should be easy - replace 'open()' with 'requestVisible()'.
I haven't changed anything in the Utilities module and the problem got
away in the development builds. It seems to have been caused by bug
#33480 - "[MDI] Fronting a dialog fronts the main window".
The probable reason of the bug was that resultWindow.open() fronted
the main window as described in the above mentioned bug.
Note: Bug #33480 has been resolved as a duplicate of bug #34670 -
"Main window fronted when property sheet in options window creates a
*** This issue has been marked as a duplicate of 33480 ***