public class SeverityRegistrar extends java.lang.Object implements java.util.Comparator<HighlightSeverity>, ModificationTracker
Modifier and Type | Class and Description |
---|---|
static class |
SeverityRegistrar.SeverityBasedTextAttributes |
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
SeverityRegistrar(MessageBus messageBus) |
public SeverityRegistrar(MessageBus messageBus)
public static void registerStandard(HighlightInfoType highlightInfoType, HighlightSeverity highlightSeverity)
public static SeverityRegistrar getSeverityRegistrar(Project project)
public long getModificationCount()
getModificationCount
in interface ModificationTracker
public void registerSeverity(SeverityRegistrar.SeverityBasedTextAttributes info, java.awt.Color renderColor)
public SeverityRegistrar.SeverityBasedTextAttributes unregisterSeverity(HighlightSeverity severity)
public HighlightInfoType.HighlightInfoTypeImpl getHighlightInfoTypeBySeverity(HighlightSeverity severity)
public TextAttributes getTextAttributesBySeverity(HighlightSeverity severity)
public void readExternal(Element element)
public void writeExternal(Element element)
public java.util.List<HighlightSeverity> getAllSeverities()
public HighlightSeverity getSeverityByIndex(int i)
public HighlightSeverity getSeverity(java.lang.String name)
public boolean isSeverityValid(java.lang.String severityName)
public int compare(HighlightSeverity s1, HighlightSeverity s2)
compare
in interface java.util.Comparator<HighlightSeverity>
public void setOrder(java.util.List<? extends HighlightSeverity> orderList)
public static boolean isDefaultSeverity(HighlightSeverity severity)