Package com.intellij.codeInsight.daemon.impl.HighlightInfo

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


public class HighlightInfoFactory13 extends HighlightInfoFactory {

    @Override
    public HighlightInfo createHighlightInfo(@NotNull HighlightInfoType type, @NotNull PsiElement element, @Nullable String message, @Nullable TextAttributes attributes) {
        Builder builder = HighlightInfo.newHighlightInfo(type)
                .range(element);
        if(message != null) {
            builder.description(message);
        }
        if(attributes != null) {
            builder.textAttributes(attributes);
        }
        return builder.create();
    }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.daemon.impl.HighlightInfo.Builder

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.