public class PsiBasedFormatterModelWithShiftIndentInside extends PsiBasedFormattingModel
myCanModifyAllWhiteSpaces| Constructor and Description |
|---|
PsiBasedFormatterModelWithShiftIndentInside(PsiFile file,
Block rootBlock,
FormattingDocumentModelImpl documentModel) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
replaceWithPsiInLeaf(TextRange textRange,
java.lang.String whiteSpace,
ASTNode leafElement) |
TextRange |
shiftIndentInsideRange(ASTNode node,
TextRange textRange,
int shift)
Indents every line except for the first in the specified text range representing a multiline block
by the specified amount.
|
canModifyAllWhiteSpaces, commitChanges, findElementAt, getDocumentModel, getRootBlock, replaceWhiteSpace, replaceWhiteSpacepublic PsiBasedFormatterModelWithShiftIndentInside(PsiFile file, Block rootBlock, FormattingDocumentModelImpl documentModel)
public TextRange shiftIndentInsideRange(ASTNode node, TextRange textRange, int shift)
FormattingModelshiftIndentInsideRange in interface FormattingModelshiftIndentInsideRange in class PsiBasedFormattingModelnode - the owner of the text range, if defined.textRange - the text range to indent.shift - the amount by which every line should be indented.protected java.lang.String replaceWithPsiInLeaf(TextRange textRange, java.lang.String whiteSpace, ASTNode leafElement)
replaceWithPsiInLeaf in class PsiBasedFormattingModel