mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
pass search parameters to ScopedQueryExecutor.getScope() (IDEA-CR-4486)
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user