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_SEVERITIES
Standard severities levelsstatic HighlightSeverity
ERROR
The standard severity level for error annotations.static HighlightSeverity
GENERIC_SERVER_ERROR_OR_WARNING
The severity level for errors or warnings obtained from server.static HighlightSeverity
INFO
The standard severity level for 'weak' :) warning annotations.static HighlightSeverity
INFORMATION
The standard severity level for information annotations.String
myName
int
myVal
static HighlightSeverity
WARNING
The 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 int
compareTo(HighlightSeverity highlightSeverity)
boolean
equals(Object o)
int
hashCode()
void
readExternal(org.jdom.Element element)
String
toString()
void
writeExternal(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:
compareTo
in interfaceComparable<HighlightSeverity>
-
readExternal
public void readExternal(org.jdom.Element element) throws InvalidDataException
- Specified by:
readExternal
in interfaceJDOMExternalizable
- Throws:
InvalidDataException
-
writeExternal
public void writeExternal(org.jdom.Element element) throws WriteExternalException
- Specified by:
writeExternal
in interfaceJDOMExternalizable
- Throws:
WriteExternalException
-
-