Created attachment 123754 [details]
Dialog example with new checkbox
The find dialog currently allows to
* search in archives
* search in generated sources
But for some reasons i want also to exclude the search to look in the test-directory while searching the project.
Add a checkbox named "Search In Tests", which is checked by default (to keep the previous behaviour). When the checkbox is unchecked then folders which are marked as Unit-Tests/"Unit Test Packages" will be excluded for searching.
See screenshot for dialog sample.
Note: A known workaround is to multi-select the non-test directories and then invoke the find action, but the requested feature simplifies the whole procedure.
Product Version: NetBeans IDE 7.2 (Build 201207171143)
I'm afraid that this use-case is quite rare and adding another checkbox to the UI would make the dialog quite complicated.
Did you consider adding file path pattern "\/src\/test\/" (or something similar that corresponds to your needs) to the Ignore List?
*** Bug 222484 has been marked as a duplicate of this bug. ***
* A workaround (when #200020 is implemented) would be that the user can remove the test-folder node from the search results.