public interface FormattingModelWithShiftIndentInsideDocumentRange extends FormattingModelEx
shiftIndentInsideDocumentRange method
is called in the model, instead of standard
FormattingModel.shiftIndentInsideRange(ASTNode, TextRange, int) procedure.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
adjustWhiteSpaceInsideDocument(ASTNode node,
java.lang.String whiteSpace)
Adjusts indentation space before the multiline AST node.
|
TextRange |
shiftIndentInsideDocumentRange(Document document,
ASTNode node,
TextRange range,
int indent)
Indents every line except for the first in the specified text range representing a multiline block
by the specified amount.
|
replaceWhiteSpacecommitChanges, getDocumentModel, getRootBlock, replaceWhiteSpace, shiftIndentInsideRangeTextRange shiftIndentInsideDocumentRange(Document document, ASTNode node, TextRange range, int indent)
document - the document for modification.node - the owner of the text range, if defined.range - the text range to indent.indent - the amount by which every line should be indented.java.lang.String adjustWhiteSpaceInsideDocument(ASTNode node, java.lang.String whiteSpace)
node - the multiline node.whiteSpace - the leading space for the node after formatting procedure.whiteSpace if no correction needs).