Search in sources :

Example 1 with ChooseByNameBase

use of com.intellij.ide.util.gotoByName.ChooseByNameBase in project intellij-community by JetBrains.

the class CodeInsightTestFixtureImpl method getGotoClassResults.

@NotNull
@Override
public List<Object> getGotoClassResults(@NotNull String pattern, boolean searchEverywhere, @Nullable PsiElement contextForSorting) {
    final ChooseByNameBase chooseByNamePopup = getMockChooseByNamePopup(contextForSorting);
    final ArrayList<Object> results = new ArrayList<>();
    chooseByNamePopup.getProvider().filterElements(chooseByNamePopup, chooseByNamePopup.transformPattern(pattern), searchEverywhere, new MockProgressIndicator(), new CommonProcessors.CollectProcessor<>(results));
    return results;
}
Also used : MockProgressIndicator(com.intellij.mock.MockProgressIndicator) ChooseByNameBase(com.intellij.ide.util.gotoByName.ChooseByNameBase) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ChooseByNameBase (com.intellij.ide.util.gotoByName.ChooseByNameBase)1 MockProgressIndicator (com.intellij.mock.MockProgressIndicator)1 NotNull (org.jetbrains.annotations.NotNull)1