public abstract class TemplateLanguageFormattingModelBuilder extends java.lang.Object implements DelegatingFormattingModelBuilder, TemplateLanguageBlockFactory
Constructor and Description |
---|
TemplateLanguageFormattingModelBuilder() |
Modifier and Type | Method and Description |
---|---|
protected AbstractBlock |
createDummyBlock(ASTNode node) |
FormattingModel |
createModel(PsiElement element,
CodeStyleSettings settings)
Requests building the formatting model for a section of the file containing
the specified PSI element and its children.
|
boolean |
dontFormatMyModel() |
protected Block |
getRootBlock(PsiElement element,
FileViewProvider viewProvider,
CodeStyleSettings settings) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dontFormatMyModel
getRangeAffectingIndent
createTemplateLanguageBlock
public TemplateLanguageFormattingModelBuilder()
public FormattingModel createModel(PsiElement element, CodeStyleSettings settings)
FormattingModelBuilder
createModel
in interface FormattingModelBuilder
element
- the top element for which formatting is requested.settings
- the code style settings used for formatting.protected Block getRootBlock(PsiElement element, FileViewProvider viewProvider, CodeStyleSettings settings)
protected AbstractBlock createDummyBlock(ASTNode node)
public boolean dontFormatMyModel()
dontFormatMyModel
in interface DelegatingFormattingModelBuilder