Re: How to customize 'Find in Projects' dialog
Todd Stevenson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
The ScopeProvider code was exactly what I needed. Thank you so much. One last question: How can I get all the opened projects in the project explorer? I can get the selected projects but not all opened projects. Thanks, Todd Stevenson From: Benno Markiewicz [mailto:[email protected]] Sent: Tuesday, February 09, 2016 2:05 PM To: [email protected] Subject: [platform-dev] Re: How to customize 'Find in Projects' dialog Hej Todd, Geertjan blogged about the search api at least twice. * https://blogs.oracle.com/geertjan/entry/getting_started_plugging_into_the * https://blogs.oracle.com/geertjan/entry/search_in_projects_api The Javadoc of the API might help * http://bits.netbeans.org/dev/javadoc/org-netbeans-api-search/overview-summary.html Or have a look at this scopeprovider, which I provided as a patch in the past * https://netbeans.org/bugzilla/show_bug.cgi?id=5009 * http://hg.netbeans.org/main-golden/rev/74c85cd4b12d With kind regards, markiewb 2016-02-09 21:04 GMT+01:00 Todd Stevenson <[email protected]<mailto:[email protected]>>: I am scratching my head on how I can customize the ‘Find in Projects’ dialog to set the search scope to force it to only search in the subfolder where my files reside in the project. I tried setting SearchInfoDefinition in the project Node lookup, but it doesn’t seem to see it. I have noticed there are some classes that seem to allow the kind of customization on the ‘Find in Projects’ dialog but I can’t find any examples of how to hook it all together. Any help? Thank you in advance. Todd Stevenson