Interface TypedRangeHighlightProvider<R,​T>

    • Field Detail

      • TYPO_ATTRIBUTES_KEY

        static final com.intellij.openapi.editor.colors.TextAttributesKey TYPO_ATTRIBUTES_KEY
      • ERROR_ATTRIBUTES_KEY

        static final com.intellij.openapi.editor.colors.TextAttributesKey ERROR_ATTRIBUTES_KEY
      • WARNING_ATTRIBUTES_KEY

        static final com.intellij.openapi.editor.colors.TextAttributesKey WARNING_ATTRIBUTES_KEY
      • IGNORED_ATTRIBUTES_KEY

        static final com.intellij.openapi.editor.colors.TextAttributesKey IGNORED_ATTRIBUTES_KEY
      • F_IDE_HIGHLIGHT

        static final int F_IDE_HIGHLIGHT
      • F_NONE

        static final int F_NONE
      • F_IDE_WARNING

        static final int F_IDE_WARNING
      • F_IDE_ERROR

        static final int F_IDE_ERROR
      • F_IDE_IGNORED

        static final int F_IDE_IGNORED
    • Method Detail

      • addHighlightRange

        default int addHighlightRange​(R range,
                                      int flags)
      • addHighlightRange

        int addHighlightRange​(R range,
                              int flags,
                              int orderIndex)
        Add highlight range
        Parameters:
        range - range object for highlight
        flags - flags for the highlight
        orderIndex - index to use if >0, else use next index
        Returns:
        order index used for the highlight
      • isRangeHighlighted

        boolean isRangeHighlighted​(R range)
      • getMaxHighlightRangeIndex

        int getMaxHighlightRangeIndex()
      • getHighlightRangeIndex

        int getHighlightRangeIndex​(R range)
      • removeHighlightRange

        void removeHighlightRange​(R range)
      • getHighlightRangeFlags

        @Nullable
        @Nullable java.util.Map<R,​java.lang.Integer> getHighlightRangeFlags()
        CAUTION: Do Not Use range value get flags for highlighting because implementors are free to modify the range before lookup, like change case NOTE: for lookup use value returned by getAdjustedRange()
        Returns:
        map of range to highlight flags
      • getHighlightRangeIndices

        @Nullable
        @Nullable java.util.Map<R,​java.lang.Integer> getHighlightRangeIndices()
        CAUTION: Do Not Use range value get flags for highlighting because implementors are free to modify the range before lookup, like change case NOTE: for lookup use value returned by getAdjustedRange()
        Returns:
        map of range to highlight flags
      • getAdjustedRange

        @NotNull
        R getAdjustedRange​(@NotNull
                           R range)
        Used to adjust for things like case sensitivity otherwise in case insensitive mode the lookup in the map will fail
        Parameters:
        range - range to look up
        Returns:
        adjusted range