public class StringContentIndentUtil
extends java.lang.Object
Constructor and Description |
---|
StringContentIndentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addIndentHighlighters(Editor editor,
java.util.List<RangeHighlighter> highlighters)
Replace indent highlighters in editor with a new ones.
|
static int |
getIndent(RangeHighlighter highlighter)
Extract string content indent from highlighter.
|
static java.util.Map<TextRange,RangeHighlighter> |
getIndentHighlighters(Editor editor)
Extract indent highlighters from editor and group them by (startOffset, endOffset) ranges.
|
static void |
setIndent(RangeHighlighter highlighter,
int indent)
Store indent data in highlighter.
|
public static java.util.Map<TextRange,RangeHighlighter> getIndentHighlighters(Editor editor)
public static void addIndentHighlighters(Editor editor, java.util.List<RangeHighlighter> highlighters)
public static int getIndent(RangeHighlighter highlighter)
public static void setIndent(RangeHighlighter highlighter, int indent)