public interface FormattingModelBuilderEx extends FormattingModelBuilder
Modifier and Type | Method and Description |
---|---|
FormattingModel |
createModel(PsiElement element,
CodeStyleSettings settings,
FormattingMode mode)
Requests building the formatting model for a section of the file containing
the specified PSI element and its children.
|
default FormattingModel |
createModel(PsiElement element,
TextRange range,
CodeStyleSettings settings,
FormattingMode mode)
Requests building the formatting model for a section of the file containing
the specified PSI element and its children.
|
CommonCodeStyleSettings.IndentOptions |
getIndentOptionsToUse(PsiFile file,
FormatTextRanges ranges,
CodeStyleSettings settings)
Deprecated.
Use
FileIndentOptionsProvider instead. |
createModel, getRangeAffectingIndent
FormattingModel createModel(PsiElement element, CodeStyleSettings settings, FormattingMode mode)
element
- the top element for which formatting is requested.settings
- the code style settings used for formatting.mode
- formatting modecreateModel(PsiElement, TextRange, CodeStyleSettings, FormattingMode)
default FormattingModel createModel(PsiElement element, TextRange range, CodeStyleSettings settings, FormattingMode mode)
element
- the top element for which formatting is requested.range
- the range for which a model should be built.settings
- the code style settings used for formatting.mode
- formatting mode.@Deprecated CommonCodeStyleSettings.IndentOptions getIndentOptionsToUse(PsiFile file, FormatTextRanges ranges, CodeStyleSettings settings)
FileIndentOptionsProvider
instead.file
- target file which content is going to be reformattedranges
- given file's ranges to reformatsettings
- code style settings holdernull
to trigger default algorithm usageFileIndentOptionsProvider