Package com.intellij.refactoring.safeDelete.usageInfo

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

Related Classes of com.intellij.refactoring.safeDelete.usageInfo.SafeDeleteReferenceSimpleDeleteUsageInfo

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.