com.intellij.formatting
Class FormattingModelProvider

java.lang.Object
  extended by com.intellij.formatting.FormattingModelProvider

public class FormattingModelProvider
extends java.lang.Object

Allows plugins to create an instance of the standard FormattingModel implementation.

See Also:
FormattingModelBuilder.createModel(com.intellij.psi.PsiElement, com.intellij.psi.codeStyle.CodeStyleSettings)

Constructor Summary
FormattingModelProvider()
           
 
Method Summary
static FormattingModel createFormattingModelForPsiFile(PsiFile file, Block rootBlock, CodeStyleSettings settings)
          Creates an instance of the standard formatting model implementation for the specified file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormattingModelProvider

public FormattingModelProvider()
Method Detail

createFormattingModelForPsiFile

public static FormattingModel createFormattingModelForPsiFile(PsiFile file,
                                                              Block rootBlock,
                                                              CodeStyleSettings settings)
Creates an instance of the standard formatting model implementation for the specified file.

Parameters:
file - the file containing the text to format.
rootBlock - the root block of the formatting model.
settings - the code style settings used for formatting.
Returns:
the formatting model instance.