pass search parameters to ScopedQueryExecutor.getScope() (IDEA-CR-4486)

This commit is contained in:
Dmitry Jemerov
2015-08-20 20:12:42 +02:00
parent 56fc610a36
commit ca0abe3b24
2 changed files with 2 additions and 2 deletions
@@ -30,5 +30,5 @@ public interface ScopedQueryExecutor<Result, Param> extends QueryExecutor<Result
* Returns the scope handled by this executor.
*/
@NotNull
GlobalSearchScope getScope();
GlobalSearchScope getScope(Param param);
}
@@ -41,7 +41,7 @@ public class ClassesWithAnnotatedMembersSearcher extends QueryExecutorBase<PsiCl
SearchScope scope = queryParameters.getScope();
for (QueryExecutor executor : Extensions.getExtensions(ClassesWithAnnotatedMembersSearch.EP_NAME)) {
if (executor instanceof ScopedQueryExecutor) {
scope = scope.intersectWith(GlobalSearchScope.notScope(((ScopedQueryExecutor) executor).getScope()));
scope = scope.intersectWith(GlobalSearchScope.notScope(((ScopedQueryExecutor) executor).getScope(queryParameters)));
}
}