Summary: | [search] Missing API to specify scope in search engine | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Tobias Widmer <tobias_widmer> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | RESOLVED WONTFIX | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M4 | ||
Hardware: | PC | ||
OS: | All | ||
Whiteboard: |
Description
Tobias Widmer
2004-11-11 09:40:17 EST
Tobias, I guess that IJavaSearchScope would replace IJavaElement... Then I would add following methods to SearchEngine: searchDeclarationsOfAccessedFields(IJavaSearchScope,SearchRequestor,IProgressMonitor) searchDeclarationsOfReferencedTypesIJavaSearchScope,SearchRequestor,IProgressMonitor) searchDeclarationsOfSentMessages(IJavaSearchScope,SearchRequestor,IProgressMonitor) Is it correct? Yes, that's correct. The search scope could then be created on the one java element with an appropriate include mask. In fact it is not really possible to use either IJavaSearchScope or include mask to address this requirement... IJavaSearchScope is applied only while filtering index documents. Reported matches are declarations which are found during matches locating done after having got index files... When search engine finally gets declaration matches, it has no way to use java search scope to filter them. The possible solution would have been to call these methods with an additional boolean not to report binary matches. But this can be done by SearchRequestor while accepting match and then no additional API methods are really necessary. Agreed with Tobias to close this bug as WONTFIX. |