public class CodeFormatterFacade
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<java.lang.Boolean> |
WRAP_LONG_LINE_DURING_FORMATTING_IN_PROGRESS_KEY
This key is used as a flag that indicates if
'wrap long line during formatting' activity is performed now. |
Constructor and Description |
---|
CodeFormatterFacade(CodeStyleSettings settings,
Language language) |
CodeFormatterFacade(CodeStyleSettings settings,
Language language,
boolean canChangeWhitespaceOnly) |
Modifier and Type | Method and Description |
---|---|
void |
doWrapLongLinesIfNecessary(Editor editor,
Project project,
Document document,
int startOffset,
int endOffset,
java.util.List<? extends TextRange> enabledRanges) |
ASTNode |
processElement(ASTNode element) |
ASTNode |
processRange(ASTNode element,
int startOffset,
int endOffset) |
void |
processText(PsiFile file,
FormatTextRanges ranges,
boolean doPostponedFormatting) |
public static final Key<java.lang.Boolean> WRAP_LONG_LINE_DURING_FORMATTING_IN_PROGRESS_KEY
'wrap long line during formatting'
activity is performed now.CommonCodeStyleSettings.WRAP_LONG_LINES
public CodeFormatterFacade(CodeStyleSettings settings, Language language)
public CodeFormatterFacade(CodeStyleSettings settings, Language language, boolean canChangeWhitespaceOnly)
public void processText(PsiFile file, FormatTextRanges ranges, boolean doPostponedFormatting)