Search in sources :

Example 1 with GotoClassContributor

use of com.intellij.navigation.GotoClassContributor in project intellij-community by JetBrains.

the class GotoClassModel2 method getSeparatorsFromContributors.

public static String[] getSeparatorsFromContributors(ChooseByNameContributor[] contributors) {
    final Set<String> separators = new HashSet<>();
    separators.add(".");
    for (ChooseByNameContributor c : contributors) {
        if (c instanceof GotoClassContributor) {
            ContainerUtil.addIfNotNull(separators, ((GotoClassContributor) c).getQualifiedNameSeparator());
        }
    }
    return ArrayUtil.toStringArray(separators);
}
Also used : GotoClassContributor(com.intellij.navigation.GotoClassContributor) ChooseByNameContributor(com.intellij.navigation.ChooseByNameContributor) HashSet(java.util.HashSet)

Aggregations

ChooseByNameContributor (com.intellij.navigation.ChooseByNameContributor)1 GotoClassContributor (com.intellij.navigation.GotoClassContributor)1 HashSet (java.util.HashSet)1