Typically, a plugin does not need to provide a complete FormattingModel implementation - it can either use a complete implementation provided by {@link FormattingModelProvider#createFormattingModelForPsiFile(com.intellij.psi.PsiFile,Block,com.intellij.psi.codeStyle.CodeStyleSettings)}or implement the necessary extra features and delegate the rest to the factory implementation. @see FormattingModelBuilder#createModel(com.intellij.psi.PsiElement,com.intellij.psi.codeStyle.CodeStyleSettings) @see FormattingModelProvider#createFormattingModelForPsiFile(com.intellij.psi.PsiFile,Block,com.intellij.psi.codeStyle.CodeStyleSettings)
|
|