public class JavaSafeDeleteProcessor extends SafeDeleteProcessorDelegateBase
EP_NAME
Constructor and Description |
---|
JavaSafeDeleteProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
collectMethodConflicts(MultiMap<PsiElement,java.lang.String> conflicts,
PsiMethod method,
PsiParameter parameter) |
java.util.Collection<java.lang.String> |
findConflicts(PsiElement element,
PsiElement [] allElementsToDelete) |
java.util.Collection<java.lang.String> |
findConflicts(PsiElement element,
PsiElement[] elements,
UsageInfo[] usages) |
NonCodeUsageSearchInfo |
findUsages(PsiElement element,
PsiElement [] allElementsToDelete,
java.util.List<UsageInfo> usages) |
java.util.Collection<PsiElement> |
getAdditionalElementsToDelete(PsiElement element,
java.util.Collection<PsiElement> allElementsToDelete,
boolean askUser) |
java.util.Collection<? extends PsiElement> |
getElementsToSearch(PsiElement element,
Module module,
java.util.Collection<PsiElement> allElementsToDelete) |
boolean |
handlesElement(PsiElement element) |
static boolean |
isInside(PsiElement place,
PsiElement ancestor) |
boolean |
isToSearchForTextOccurrences(PsiElement element) |
boolean |
isToSearchInComments(PsiElement element) |
void |
prepareForDeletion(PsiElement element) |
UsageInfo [] |
preprocessUsages(Project project,
UsageInfo[] usages)
Called after the user has confirmed the refactoring.
|
void |
setToSearchForTextOccurrences(PsiElement element,
boolean enabled) |
void |
setToSearchInComments(PsiElement element,
boolean enabled) |
UsageView |
showUsages(UsageInfo[] usages,
UsageViewPresentation presentation,
UsageViewManager manager,
PsiElement[] elements) |
getElementsToSearch
public boolean handlesElement(PsiElement element)
public NonCodeUsageSearchInfo findUsages(PsiElement element, PsiElement [] allElementsToDelete, java.util.List<UsageInfo> usages)
public java.util.Collection<? extends PsiElement> getElementsToSearch(PsiElement element, Module module, java.util.Collection<PsiElement> allElementsToDelete)
getElementsToSearch
in class SafeDeleteProcessorDelegateBase
public UsageView showUsages(UsageInfo[] usages, UsageViewPresentation presentation, UsageViewManager manager, PsiElement[] elements)
showUsages
in class SafeDeleteProcessorDelegateBase
public java.util.Collection<PsiElement> getAdditionalElementsToDelete(PsiElement element, java.util.Collection<PsiElement> allElementsToDelete, boolean askUser)
public java.util.Collection<java.lang.String> findConflicts(PsiElement element, PsiElement[] elements, UsageInfo[] usages)
findConflicts
in class SafeDeleteProcessorDelegateBase
public java.util.Collection<java.lang.String> findConflicts(PsiElement element, PsiElement [] allElementsToDelete)
public UsageInfo [] preprocessUsages(Project project, UsageInfo[] usages)
SafeDeleteProcessorDelegate
project
- the project where the refactoring happens.usages
- all usages to be processed by the refactoring.public void prepareForDeletion(PsiElement element) throws IncorrectOperationException
IncorrectOperationException
public boolean isToSearchInComments(PsiElement element)
public void setToSearchInComments(PsiElement element, boolean enabled)
public boolean isToSearchForTextOccurrences(PsiElement element)
public void setToSearchForTextOccurrences(PsiElement element, boolean enabled)
public static boolean isInside(PsiElement place, PsiElement ancestor)
public static void collectMethodConflicts(MultiMap<PsiElement,java.lang.String> conflicts, PsiMethod method, PsiParameter parameter)