Package com.intellij.psi.formatter

Examples of com.intellij.psi.formatter.DocumentBasedFormattingModel


        }
        PsiFile file = element.getContainingFile();
        if (root == null) {
            root = new FakeBlock(file.getTextRange());
        }
        return new DocumentBasedFormattingModel(root, file.getProject(), settings, file.getFileType(), file);
    }
View Full Code Here


      return new SimpleTemplateLanguageFormattingModelBuilder().createModel(element, settings);
    }
    else {
      rootBlock = getRootBlock(file, file.getViewProvider(), settings);
    }
    return new DocumentBasedFormattingModel(rootBlock, element.getProject(), settings, file.getFileType(), file);
  }
View Full Code Here

TOP

Related Classes of com.intellij.psi.formatter.DocumentBasedFormattingModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.