deprecate SearchParameters.getScope

This commit is contained in:
peter
2014-12-02 16:00:41 +01:00
parent aa77cca14b
commit 302967b3f0
2 changed files with 24 additions and 2 deletions

View File

@@ -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

View File

@@ -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