mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 11:50:54 +07:00
deprecate SearchParameters.getScope
This commit is contained in:
@@ -65,9 +65,22 @@ public class MethodReferencesSearch extends ExtensibleQueryFactory<PsiReference,
|
||||
return myOptimizer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the user-visible search scope, most often "Project Files" or "Project and Libraries".
|
||||
* Searchers most likely need to use {@link #getEffectiveSearchScope()}.
|
||||
*/
|
||||
public SearchScope getScopeDeterminedByUser() {
|
||||
return myScope;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return Same as {@link #getScopeDeterminedByUser()}. Searchers most likely need to use {@link #getEffectiveSearchScope()}.
|
||||
*/
|
||||
@Deprecated
|
||||
@NotNull
|
||||
public SearchScope getScope() {
|
||||
return myScope;
|
||||
return getScopeDeterminedByUser();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -60,7 +60,16 @@ public class ReferencesSearch extends ExtensibleQueryFactory<PsiReference, Refer
|
||||
}
|
||||
|
||||
/**
|
||||
* Use {@link #getEffectiveSearchScope} instead
|
||||
* @return the user-visible search scope, most often "Project Files" or "Project and Libraries".
|
||||
* Searchers most likely need to use {@link #getEffectiveSearchScope()}.
|
||||
*/
|
||||
public SearchScope getScopeDeterminedByUser() {
|
||||
return myScope;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Same as {@link #getScopeDeterminedByUser()}. Use {@link #getEffectiveSearchScope} instead
|
||||
*/
|
||||
@Deprecated()
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user