Package com.intellij.peer

Examples of com.intellij.peer.PeerFactory


   *
   * @param chameleon the node to parse.
   * @return the parsed contents of the node.
   */
  public ASTNode parseContents(ASTNode chameleon) {
    final PeerFactory factory = PeerFactory.getInstance();
    final PsiElement parentElement = chameleon.getTreeParent().getPsi();
    final Project project = parentElement.getManager().getProject();

    final LanguageDialect langDialect = parentElement.getContainingFile().getLanguageDialect();
    final PsiBuilder builder = factory.createBuilder(
      chameleon,
      null,
      langDialect != null ? langDialect:getLanguage(),
      chameleon.getText(),
      project
View Full Code Here

TOP

Related Classes of com.intellij.peer.PeerFactory

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.