Package org.intellij.erlang.psi

Examples of org.intellij.erlang.psi.ErlangTypeDefinition


  }

  @Override
  public boolean isAvailable(@NotNull Project project, Editor editor, PsiFile file) {
    if (!file.getManager().isInProject(file) || !(file instanceof ErlangFile)) return false;
    ErlangTypeDefinition type = findType(file, editor.getCaretModel().getOffset());
    return type != null;
  }
View Full Code Here


    return type != null;
  }

  @Override
  public void invoke(@NotNull Project project, Editor editor, PsiFile file) throws IncorrectOperationException {
    ErlangTypeDefinition type = findType(file, editor.getCaretModel().getOffset());
    assert type != null;
    ErlangExportTypeFix.processType(project, type);
  }
View Full Code Here

    return "Remove type";
  }

  @Override
  public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
    ErlangTypeDefinition type = PsiTreeUtil.getParentOfType(descriptor.getPsiElement(), ErlangTypeDefinition.class);
    if (type != null) {
      type.delete();
    }
  }
View Full Code Here

TOP

Related Classes of org.intellij.erlang.psi.ErlangTypeDefinition

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.