Examples of HaxeImportStatementRegular


Examples of com.intellij.plugins.haxe.lang.psi.HaxeImportStatementRegular

    assert positionIndex < children.length;
    insertImportBefore(path, file, children[positionIndex]);
  }

  private static void insertImportBefore(String path, PsiFile file, PsiElement child) {
    final HaxeImportStatementRegular importStatement =
      HaxeElementGenerator.createImportStatementFromPath(file.getProject(), path);
    if (importStatement == null) {
      return;
    }
View Full Code Here

Examples of com.intellij.plugins.haxe.lang.psi.HaxeImportStatementRegular

    HaxeImportStatementWithWildcard importStatementWithWildcard = PsiTreeUtil.getParentOfType(elementAt, HaxeImportStatementWithWildcard.class);

    String packageName = importStatementWithWildcard.getReferenceExpression().getText();

    for (HaxeClass haxeClass : HaxeImportUtil.getClassesUsedFromImportStatementWithWildcard(file, importStatementWithWildcard)) {
      HaxeImportStatementRegular importStatementRegular =
        HaxeElementGenerator.createImportStatementFromPath(importStatementWithWildcard.getProject(), haxeClass.getQualifiedName());

      importStatementWithWildcard.getParent().addBefore(importStatementRegular, importStatementWithWildcard);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.