Examples of HighlightInfo


Examples of com.intellij.codeInsight.daemon.impl.HighlightInfo

                public void visitXmlAttribute(XmlAttribute attribute) {
                    super.visitXmlAttribute(attribute);
                    if (Constants.WICKET_ID.equals(attribute.getName())) {
                        XmlAttributeValue attributeValue = attribute.getValueElement();
                        if (attributeValue != null && hasReference(attributeValue, MarkupWicketIdReference.class)) {
                            HighlightInfo highlightInfo = createHighlightInfo(WicketForgeColorSettingsPage.HIGHLIGHT_MARKUPWICKETID, attributeValue.getTextRange());
                            if (highlightInfo != null) {
                                workList.add(highlightInfo);
                            }
                        }
                    }
                }
            });
            highlights = workList;

        } else if (file instanceof PsiJavaFile) {

            // Class

            final List<HighlightInfo> workList = new SmartList<HighlightInfo>();
            for (PsiClass psiClass : ((PsiJavaFile) file).getClasses()) {
                psiClass.accept(new JavaRecursiveElementVisitor() {
                    @Override
                    public void visitCallExpression(PsiCallExpression callExpression) {
                        super.visitCallExpression(callExpression);
                        PsiClass classToBeCreated = WicketPsiUtil.getClassToBeCreated(callExpression);
                        // if its a component
                        if (classToBeCreated != null && WicketPsiUtil.isWicketComponent(classToBeCreated)) {
                            // highlight wicketId expression (but only if its not a page)
                            if (!WicketPsiUtil.isWicketPage(classToBeCreated)) {
                                PsiExpression wicketIdExpression = WicketPsiUtil.getWicketIdExpressionFromArguments(callExpression);
                                if (wicketIdExpression != null) {
                                    // only PsiLiteralExpression are resolvable wicketIds
                                    HighlightInfoType type;
                                    if (hasReference(wicketIdExpression, ClassWicketIdReference.class)) {
                                        type = WicketForgeColorSettingsPage.HIGHLIGHT_JAVAWICKETID;
                                    } else {
                                        type = WicketForgeColorSettingsPage.HIGHLIGHT_JAVAWICKETID_NOTRESOLVABLE;
                                    }
                                    HighlightInfo highlightInfo = createHighlightInfo(type, wicketIdExpression.getTextRange());
                                    if (highlightInfo != null) {
                                        workList.add(highlightInfo);
                                    }
                                }
                            }
View Full Code Here

Examples of com.intellij.codeInsight.daemon.impl.HighlightInfo

                !(errorStripeTooltip instanceof HighlightInfo)) {
                continue;
            }

            // if this a "Unresolved symbol" error
            HighlightInfo info = (HighlightInfo) errorStripeTooltip;
            if (info.getSeverity() != HighlightSeverity.ERROR ||
                !info.getDescription().contains("Unresolved symbol")) {
                continue;
            }

            GoLiteralIdentifier id = findElementOfClassAtRange(file, start, end, GoLiteralIdentifier.class);
            if (!isPackageUsage(id)) {
View Full Code Here

Examples of com.intellij.codeInsight.daemon.impl.HighlightInfo

        for (RangeHighlighter highlighter : getAllHighlighters(project)) {
            Object errorStripeTooltip = highlighter.getErrorStripeTooltip();
            if (!(errorStripeTooltip instanceof HighlightInfo)) {
                continue;
            }
            HighlightInfo info = (HighlightInfo) errorStripeTooltip;
            if (info.getSeverity() == HighlightSeverity.ERROR &&
                    !containsRemoveImportFix(info)) {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of com.intellij.codeInsight.daemon.impl.HighlightInfo

                                                              Color.decode(effectColor), EffectType.valueOf(effectType),
                                                              Integer.parseInt(fontType));
      }

      TextRange textRange = new TextRange(startOffset, startOffset + content.length());
      final HighlightInfo highlightInfo = HighlightInfo.createHighlightInfo(expectedHighlightingSet.defaultErrorType, textRange, descr, forcedAttributes);

      HighlightInfoType type = null;

      if (typeString != null) {
        try {
View Full Code Here

Examples of org.fife.ui.rtextarea.RTextAreaHighlighter.HighlightInfo

      for (ParserNotice notice : notices) {
        if (DEBUG_PARSING) {
          System.out.println("[DEBUG]: ... adding: " + notice);
        }
        try {
          HighlightInfo highlight = null;
          if (notice.getShowInEditor()) {
            highlight = h.addParserHighlight(notice,
                      parserErrorHighlightPainter);
          }
          noticeHighlightPairs.add(new NoticeHighlightPair(notice, highlight));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.