Package com.intellij.codeInsight.daemon

Examples of com.intellij.codeInsight.daemon.LineMarkerInfo


    final boolean isInterface = HaxeComponentType.typeOf(haxeClass) == HaxeComponentType.INTERFACE;
    for (HaxeNamedComponent haxeNamedComponent : HaxeResolveUtil.getNamedSubComponents(haxeClass)) {
      final HaxeComponentType type = HaxeComponentType.typeOf(haxeNamedComponent);
      if (type == HaxeComponentType.METHOD || type == HaxeComponentType.FIELD) {
        LineMarkerInfo item = tryCreateOverrideMarker(haxeNamedComponent, superItems);
        if (item != null) {
          result.add(item);
        }
        item = tryCreateImplementationMarker(haxeNamedComponent, subItems, isInterface);
        if (item != null) {
          result.add(item);
        }
      }
    }

    if (!subClasses.isEmpty()) {
      final LineMarkerInfo marker = createImplementationMarker(haxeClass, subClasses);
      if (marker != null) {
        result.add(marker);
      }
    }
  }
View Full Code Here


class NavigableLineMarkerInfo {
    private NavigableLineMarkerInfo() {
    }

    public static LineMarkerInfo create(@NotNull PsiElement element, @NotNull final NavigatablePsiElement[] targets, @NotNull Icon icon) {
        return new LineMarkerInfo(element, element.getTextRange(), icon, Pass.UPDATE_ALL,
                new Function<PsiElement, String>() {
                    @Override
                    public String fun(PsiElement psiElement) {
                        return GutterIconTooltipHelper.composeText(targets, "", "{0}");
                    }
View Full Code Here

    for (DartClass subClass : subClasses) {
      subItems.addAll(DartResolveUtil.getNamedSubComponents(subClass));
    }

    for (DartComponent dartComponent : DartResolveUtil.getNamedSubComponents(dartClass)) {
      final LineMarkerInfo markerInfo = tryCreateImplementationMarker(dartComponent, subItems, dartComponent.isAbstract());
      if (markerInfo != null) {
        result.add(markerInfo);
      }
    }
  }
View Full Code Here

      return null;
    }
    if (!JstdSettingsUtil.areJstdConfigFilesInProjectCached(element.getProject())) {
      return null;
    }
    LineMarkerInfo lineMarkerInfo = getJstdLineMarkerInfo(project, jsFile, element);
    if (lineMarkerInfo == null) {
      lineMarkerInfo = getQUnitLineMarkerInfo(jsFile, element);
    }
    return lineMarkerInfo;
  }
View Full Code Here

   * @param expectedValues      Expected names.
   */
  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>();
View Full Code Here

        for(PsiElement psiElement: psiElements) {

            // blocks
            if (TwigHelper.getBlockTagPattern().accepts(psiElement)) {

                LineMarkerInfo lineImpl = this.attachBlockImplements(psiElement);
                if(lineImpl != null) {
                    results.add(lineImpl);
                }

                LineMarkerInfo lineOverwrites = this.attachBlockOverwrites(psiElement);
                if(lineOverwrites != null) {
                    results.add(lineOverwrites);
                }

            }

            // controller
            if(psiElement instanceof TwigFile) {
                attachController((TwigFile) psiElement, results);

                // attach parent includes goto
                LineMarkerInfo lineIncludes = attachIncludes((TwigFile) psiElement);
                if(lineIncludes != null) {
                    results.add(lineIncludes);
                }

                // attach parent includes goto
                LineMarkerInfo lineFromInclude = attachFromIncludes((TwigFile) psiElement);
                if(lineFromInclude != null) {
                    results.add(lineFromInclude);
                }
            }
View Full Code Here

    @Override
    public void collectSlowLineMarkers(@NotNull List<PsiElement> psiElements, @NotNull Collection<LineMarkerInfo> results) {

        for(PsiElement psiElement: psiElements) {
            LineMarkerInfo lineMarkerInfo = collect(psiElement);
            if(lineMarkerInfo != null) {
                results.add(lineMarkerInfo);
            }
        }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.daemon.LineMarkerInfo

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.