Examples of ErlangTypeDefinition


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

Examples of org.intellij.erlang.psi.ErlangTypeDefinition

    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

Examples of org.intellij.erlang.psi.ErlangTypeDefinition

    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
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.