Java Code Examples for com.intellij.openapi.editor.markup.HighlighterLayer#WARNING

The following examples show how to use com.intellij.openapi.editor.markup.HighlighterLayer#WARNING . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LSPDiagnosticsToMarkers.java    From intellij-quarkus with Eclipse Public License 2.0 4 votes vote down vote up
private int getLayer(DiagnosticSeverity severity) {
    return severity== DiagnosticSeverity.Error?HighlighterLayer.ERROR:HighlighterLayer.WARNING;
}
 
Example 2
Source File: SyntaxInfoBuilder.java    From consulo with Apache License 2.0 4 votes vote down vote up
private static boolean isInterestedInLayer(int layer) {
  return layer != HighlighterLayer.CARET_ROW && layer != HighlighterLayer.SELECTION && layer != HighlighterLayer.ERROR && layer != HighlighterLayer.WARNING && layer != HighlighterLayer.ELEMENT_UNDER_CARET;
}