public interface AnnotationHolder
@Deprecated Annotation createErrorAnnotation(PsiElement elt, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadelt
- the element over which the annotation is created.message
- the error message.@Deprecated Annotation createErrorAnnotation(ASTNode node, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadnode
- the node over which the annotation is created.message
- the error message.@Deprecated Annotation createErrorAnnotation(TextRange range, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadrange
- the text range over which the annotation is created.message
- the error message.@Deprecated Annotation createWarningAnnotation(PsiElement elt, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadelt
- the element over which the annotation is created.message
- the warning message.@Deprecated Annotation createWarningAnnotation(ASTNode node, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadnode
- the node over which the annotation is created.message
- the warning message.@Deprecated Annotation createWarningAnnotation(TextRange range, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadrange
- the text range over which the annotation is created.message
- the warning message.@Deprecated Annotation createWeakWarningAnnotation(PsiElement elt, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadHighlightSeverity.WEAK_WARNING
('weak warning') with the specified
message over the specified PSI element.elt
- the element over which the annotation is created.message
- the info message.@Deprecated Annotation createWeakWarningAnnotation(ASTNode node, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadHighlightSeverity.WEAK_WARNING
('weak warning') with the specified
message over the specified AST node.node
- the node over which the annotation is created.message
- the info message.@Deprecated Annotation createWeakWarningAnnotation(TextRange range, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadHighlightSeverity.WEAK_WARNING
('weak warning') with the specified
message over the specified text range.range
- the text range over which the annotation is created.message
- the info message.@Deprecated Annotation createInfoAnnotation(PsiElement elt, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadelt
- the element over which the annotation is created.message
- the information message.@Deprecated Annotation createInfoAnnotation(ASTNode node, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadnode
- the node over which the annotation is created.message
- the information message.@Deprecated Annotation createInfoAnnotation(TextRange range, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadrange
- the text range over which the annotation is created.message
- the information message.@Deprecated Annotation createAnnotation(HighlightSeverity severity, TextRange range, java.lang.String message)
newAnnotation(HighlightSeverity, String)
insteadseverity
- the severity.range
- the text range over which the annotation is created.message
- the information message.@Deprecated Annotation createAnnotation(HighlightSeverity severity, TextRange range, java.lang.String message, java.lang.String htmlTooltip)
newAnnotation(HighlightSeverity, String)
insteadseverity
- the severity.range
- the text range over which the annotation is created.message
- the information message.htmlTooltip
- the tooltip to show (usually the message, but escaped as HTML and surrounded by a <html>
tagAnnotationSession getCurrentAnnotationSession()
boolean isBatchMode()
default AnnotationBuilder newAnnotation(HighlightSeverity severity, java.lang.String message)
AnnotationBuilder.create()
must be called.
For example: holder.newAnnotation(HighlightSeverity.WARNING, "My warning message").create();
severity
- The severity of the annotation.message
- The message this annotation will show in the status bar and the tooltip.default AnnotationBuilder newSilentAnnotation(HighlightSeverity severity)
AnnotationBuilder.create()
must be called.
For example: holder.newSilentAnnotation(HighlightSeverity.WARNING).textAttributes(MY_ATTRIBUTES_KEY).create();
severity
- The severity of the annotation.