Package com.intellij.psi.impl.source.tree

Examples of com.intellij.psi.impl.source.tree.FileElement


*/
public class GherkinFormattingModelBuilder implements FormattingModelBuilder {
  @NotNull
  public FormattingModel createModel(PsiElement element, CodeStyleSettings settings) {
    final PsiFile file = element.getContainingFile();
    final FileElement fileElement = TreeUtil.getFileElement((TreeElement)SourceTreeToPsiMap.psiElementToTree(element));
    final GherkinBlock rootBlock = new GherkinBlock(fileElement);
    //FormattingModelDumper.dumpFormattingModel(rootBlock, 0, System.out);
    return new PsiBasedFormattingModel(file, rootBlock, FormattingDocumentModelImpl.createOn(file));
  }
View Full Code Here


    @NotNull
    public FormattingModel createModel(PsiElement element,
                                       CodeStyleSettings settings) {

        final FileElement fileElement = TreeUtil.getFileElement(
            (TreeElement) SourceTreeToPsiMap.psiElementToTree(element));

        CommonCodeStyleSettings goSettings =
            settings.getCommonSettings(GoLanguage.INSTANCE);
View Full Code Here

TOP

Related Classes of com.intellij.psi.impl.source.tree.FileElement

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.