コード例 #1
0
 @NotNull
 @Override
 public GlobalSearchScope uniteWith(@NotNull GlobalSearchScope scope) {
   if (scope == this || !scope.isSearchInLibraries() || !scope.isSearchOutsideRootModel())
     return this;
   return super.uniteWith(scope);
 }
コード例 #2
0
  @NotNull
  public GlobalSearchScope uniteWith(@NotNull final GlobalSearchScope scope) {
    if (scope.isSearchOutsideRootModel()) {
      return super.uniteWith(scope);
    }

    return this;
  }
コード例 #3
0
  @NotNull
  public GlobalSearchScope intersectWith(@NotNull final GlobalSearchScope scope) {
    if (scope.isSearchOutsideRootModel()) {
      return super.intersectWith(scope);
    }

    return scope;
  }
コード例 #4
0
 @Override
 public boolean isSearchOutsideRootModel() {
   return myScope1.isSearchOutsideRootModel() && myScope2.isSearchOutsideRootModel();
 }