public class TurnRefsToSuperProcessor extends TurnRefsToSuperProcessorBase
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myClass, myElementToNode, myManager, myMarkedNodes, myReplaceInstanceOf, mySearchHelper, myVariablesRenames
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
TurnRefsToSuperProcessor(Project project,
PsiClass aClass,
PsiClass aSuper,
boolean replaceInstanceOf) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canTurnToSuper(PsiElement refElement) |
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
protected java.util.Collection<? extends PsiElement> |
getElementsToWrite(UsageViewDescriptor descriptor) |
PsiClass |
getSuper() |
PsiClass |
getTarget() |
protected boolean |
isInSuper(PsiElement member) |
boolean |
isReplaceInstanceOf() |
protected boolean |
isSuperInheritor(PsiClass aClass) |
protected void |
performRefactoring(UsageInfo [] usages)
Is called in a command and inside atomic action.
|
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
protected void |
refreshElements(PsiElement [] elements)
is called when usage search is re-run.
|
addLink, detectTurnToSuperRefs, markNodes, performVariablesRenaming, processTurnToSuperRefs
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessor
refreshElements
in class BaseRefactoringProcessor
elements
- - refreshed elements that are returned by UsageViewDescriptor.getElements()protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class TurnRefsToSuperProcessorBase
refUsages
- usages to be filteredprotected boolean canTurnToSuper(PsiElement refElement)
canTurnToSuper
in class TurnRefsToSuperProcessorBase
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected boolean isInSuper(PsiElement member)
isInSuper
in class TurnRefsToSuperProcessorBase
protected boolean isSuperInheritor(PsiClass aClass)
isSuperInheritor
in class TurnRefsToSuperProcessorBase
public PsiClass getSuper()
public PsiClass getTarget()
public boolean isReplaceInstanceOf()
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite
in class BaseRefactoringProcessor