Examples of SafeDeleteReferenceSimpleDeleteUsageInfo


Examples of com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteReferenceSimpleDeleteUsageInfo

      Collection<PsiReference> all = ReferencesSearch.search(element).findAll();
      for (PsiReference ref : all) {
        PsiElement refElement = ref.getElement();
        if (PsiTreeUtil.getParentOfType(refElement, ErlangSpecification.class) != null) continue;
        final boolean inExport = PsiTreeUtil.getParentOfType(refElement, ErlangExportFunction.class) != null;
        result.add(new SafeDeleteReferenceSimpleDeleteUsageInfo(refElement, element, inExport) {
          @Override
          public void deleteElement() throws IncorrectOperationException {
            PsiElement e = getElement();
            if (isSafeDelete() && inExport && e != null) {
              PsiElement parent = e.getParent();
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.