public interface SafeDeleteProcessorDelegate
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<SafeDeleteProcessorDelegate> |
EP_NAME |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<java.lang.String> |
findConflicts(PsiElement element,
PsiElement [] allElementsToDelete) |
NonCodeUsageSearchInfo |
findUsages(PsiElement element,
PsiElement [] allElementsToDelete,
java.util.List<UsageInfo> result) |
java.util.Collection<PsiElement> |
getAdditionalElementsToDelete(PsiElement element,
java.util.Collection<PsiElement> allElementsToDelete,
boolean askUser) |
java.util.Collection<? extends PsiElement> |
getElementsToSearch(PsiElement element,
java.util.Collection<PsiElement> allElementsToDelete)
Called before the refactoring dialog is shown.
|
boolean |
handlesElement(PsiElement element) |
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) |
static final ExtensionPointName<SafeDeleteProcessorDelegate> EP_NAME
boolean handlesElement(PsiElement element)
NonCodeUsageSearchInfo findUsages(PsiElement element, PsiElement [] allElementsToDelete, java.util.List<UsageInfo> result)
java.util.Collection<? extends PsiElement> getElementsToSearch(PsiElement element, java.util.Collection<PsiElement> allElementsToDelete)
element
- an element selected for deletion.allElementsToDelete
- all elements selected for deletion.java.util.Collection<PsiElement> getAdditionalElementsToDelete(PsiElement element, java.util.Collection<PsiElement> allElementsToDelete, boolean askUser)
java.util.Collection<java.lang.String> findConflicts(PsiElement element, PsiElement [] allElementsToDelete)
UsageInfo [] preprocessUsages(Project project, UsageInfo[] usages)
project
- the project where the refactoring happens.usages
- all usages to be processed by the refactoring.void prepareForDeletion(PsiElement element) throws IncorrectOperationException
IncorrectOperationException
boolean isToSearchInComments(PsiElement element)
void setToSearchInComments(PsiElement element, boolean enabled)
boolean isToSearchForTextOccurrences(PsiElement element)
void setToSearchForTextOccurrences(PsiElement element, boolean enabled)