Package com.intellij.codeInsight.navigation

Examples of com.intellij.codeInsight.navigation.NavigationGutterIconRenderer


   */
  static void checkGutterTargets(@NotNull final GutterMark renderer,
                                 @NotNull final Function<PsiElement, String> resultValueFunction,
                                 final String... expectedValues) {
    final LineMarkerInfo lineMarkerInfo = ((LineMarkerInfo.LineMarkerGutterIconRenderer) renderer).getLineMarkerInfo();
    final NavigationGutterIconRenderer navigationHandler = (NavigationGutterIconRenderer) lineMarkerInfo.getNavigationHandler();
    assertNotNull(navigationHandler);

    final List<PsiElement> targetElements = navigationHandler.getTargetElements();

    final Set<String> foundValues = new HashSet<String>();
    for (final PsiElement psiElement : targetElements) {
      foundValues.add(resultValueFunction.fun(psiElement));
    }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.navigation.NavigationGutterIconRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.