Package com.intellij.lang.annotation
Class HighlightSeverity
- java.lang.Object
-
- com.intellij.lang.annotation.HighlightSeverity
-
- All Implemented Interfaces:
JDOMExternalizable,Comparable<HighlightSeverity>
public class HighlightSeverity extends Object implements Comparable<HighlightSeverity>, JDOMExternalizable
Defines a highlighting severity level for an annotation.- Author:
- max
- See Also:
com.intellij.lang.annotation.Annotation
-
-
Field Summary
Fields Modifier and Type Field Description static HighlightSeverity[]DEFAULT_SEVERITIESStandard severities levelsstatic HighlightSeverityERRORThe standard severity level for error annotations.static HighlightSeverityGENERIC_SERVER_ERROR_OR_WARNINGThe severity level for errors or warnings obtained from server.static HighlightSeverityINFOThe standard severity level for 'weak' :) warning annotations.static HighlightSeverityINFORMATIONThe standard severity level for information annotations.StringmyNameintmyValstatic HighlightSeverityWARNINGThe standard severity level for warning annotations.
-
Constructor Summary
Constructors Constructor Description HighlightSeverity(String name, int val)Creates a new highlighting severity level with the specified name and value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(HighlightSeverity highlightSeverity)booleanequals(Object o)inthashCode()voidreadExternal(org.jdom.Element element)StringtoString()voidwriteExternal(org.jdom.Element element)
-
-
-
Field Detail
-
myName
public final String myName
-
myVal
public final int myVal
-
INFORMATION
public static final HighlightSeverity INFORMATION
The standard severity level for information annotations.
-
GENERIC_SERVER_ERROR_OR_WARNING
public static final HighlightSeverity GENERIC_SERVER_ERROR_OR_WARNING
The severity level for errors or warnings obtained from server.
-
INFO
public static final HighlightSeverity INFO
The standard severity level for 'weak' :) warning annotations.
-
WARNING
public static final HighlightSeverity WARNING
The standard severity level for warning annotations.
-
ERROR
public static final HighlightSeverity ERROR
The standard severity level for error annotations.
-
DEFAULT_SEVERITIES
public static final HighlightSeverity[] DEFAULT_SEVERITIES
Standard severities levels
-
-
Constructor Detail
-
HighlightSeverity
public HighlightSeverity(@NonNls String name, int val)Creates a new highlighting severity level with the specified name and value.- Parameters:
name- the name of the highlighting level.val- the value of the highlighting level. Used for comparing the annotations - if two annotations with different severity levels cover the same text range, only the annotation with a higher severity level is displayed.
-
-
Method Detail
-
compareTo
public int compareTo(HighlightSeverity highlightSeverity)
- Specified by:
compareToin interfaceComparable<HighlightSeverity>
-
readExternal
public void readExternal(org.jdom.Element element) throws InvalidDataException- Specified by:
readExternalin interfaceJDOMExternalizable- Throws:
InvalidDataException
-
writeExternal
public void writeExternal(org.jdom.Element element) throws WriteExternalException- Specified by:
writeExternalin interfaceJDOMExternalizable- Throws:
WriteExternalException
-
-