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.
|Summary:||Add option to the find dialog to optionally "search in tests"|
|Component:||Search||Assignee:||Jaroslav Havlin <jhavlin>|
|Issue Type:||ENHANCEMENT||Exception Reporter:|
|Attachments:||Dialog example with new checkbox|
Description markiewb 2012-08-30 19:19:17 UTC
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)
Comment 1 Jaroslav Havlin 2012-08-31 13:34:29 UTC
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?
Comment 2 markiewb 2012-12-15 07:47:13 UTC
*** Bug 222484 has been marked as a duplicate of this bug. ***
Comment 3 markiewb 2012-12-15 08:05:18 UTC
FYI: * A workaround (when #200020 is implemented) would be that the user can remove the test-folder node from the search results.