public final class FormattingModelProvider
extends java.lang.Object
FormattingModel
implementation.Constructor and Description |
---|
FormattingModelProvider() |
Modifier and Type | Method and Description |
---|---|
static FormattingModel |
createFormattingModelForPsiFile(PsiFile file,
Block rootBlock,
CodeStyleSettings settings)
Creates an instance of the standard formatting model implementation for the specified file.
|
public static FormattingModel createFormattingModelForPsiFile(PsiFile file, Block rootBlock, CodeStyleSettings settings)
file
- the file containing the text to format.rootBlock
- the root block of the formatting model.settings
- the code style settings used for formatting.