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.
dev build 200109030100 IBM JDK 1.3 Say I search a directory node (in EXPLORER) for a string and it returns a list of 10 files. Some of these files have no file type. If I click on them and turn them into TEXT files, they disappear off the list of results. I don't think they should be removed because whether or not they are text-files they *still* contain the string I was searching for.
utilities stuff
*** Issue 16019 has been marked as a duplicate of this issue. ***
For SearchResult the converting of the object, means the old data object was removed and Search doesn't have means how to know it's going to be replced by new one. So currently it's not fixable in nice way. This issue will be solved in future (see planned features) when there will be implemented full dynamic search result -> search result should be then able to watch creation of new objects in its search scope and if will contain some matching string be added to result, thus also our case will pass. Closing as Later.
Change issue title (FILE -> FIND) to fix typo Furthermore, can you not fix this issue by placing an EventListener on Explorer which will be fired whenever new objects are added/removed. When new objects are added, you run the search on them automatically. Or is this exactly what you meant when you said "dynamic search"?
In general something like that is necessary to be done. But in fact it requires much more. Listening on Explorer wouldn't help. You need to listen on folder objects, its sub-folders (etc) if they children has changed and then retry the search for only for those changed objects. If you would perform the entire search it would probably damage performance much. I think it requires much more to be done then it seems (one listener to set shouldn't be enough and clean), therefore it's planned as new feature.
This issue is still present and should be fixed.
x
*** Issue 21864 has been marked as a duplicate of this issue. ***
I'd just like to add a note regarding related issue #16019. I am expecting the FIND dialog to remove result entries they have been modified and the search string no longer occurs inside them. For example, if I search for all files with "class Apple" in them, open the file via the FIND dialog, and replace them all with "class Orange" and save the file, I still expect the FIND dialog to remove the entry from the list since it is no longer a valid match.
This bug is no longer valid. Changing type of a file to text has been removed in NetBeans 4.0 (currently in beta stage). Also the "dynamic search results" feature was removed from NetBeans in version 3.5 (see issue #30613). Marking this bug as INVALID.