public abstract class ExtractSuperBaseProcessor extends TurnRefsToSuperProcessorBase
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
protected DocCommentPolicy |
myJavaDocPolicy |
protected MemberInfo[] |
myMemberInfos |
protected java.lang.String |
myNewClassName |
protected PsiDirectory |
myTargetDirectory |
myClass, myElementToNode, myManager, myMarkedNodes, myReplaceInstanceOf, mySearchHelper, myVariablesRenames
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
ExtractSuperBaseProcessor(Project project,
boolean replaceInstanceOf,
PsiDirectory targetDirectory,
java.lang.String newClassName,
PsiClass aClass,
MemberInfo[] memberInfos,
DocCommentPolicy javaDocPolicy) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected boolean |
doesAnyExtractedInterfaceExtends(PsiClass aClass) |
protected boolean |
doMemberInfosContain(PsiField field) |
protected boolean |
doMemberInfosContain(PsiMethod method) |
protected abstract PsiClass |
extractSuper(java.lang.String superClassName) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
protected java.util.Collection<? extends PsiElement> |
getElementsToWrite(UsageViewDescriptor descriptor) |
protected void |
performRefactoring(UsageInfo [] usages)
Is called in a command and inside atomic action.
|
protected void |
refreshElements(PsiElement [] elements)
is called when usage search is re-run.
|
addLink, canTurnToSuper, detectTurnToSuperRefs, isInSuper, isSuperInheritor, markNodes, performVariablesRenaming, preprocessUsages, 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 PsiDirectory myTargetDirectory
protected final java.lang.String myNewClassName
protected final MemberInfo[] myMemberInfos
protected final DocCommentPolicy myJavaDocPolicy
public ExtractSuperBaseProcessor(Project project, boolean replaceInstanceOf, PsiDirectory targetDirectory, java.lang.String newClassName, PsiClass aClass, MemberInfo[] memberInfos, DocCommentPolicy javaDocPolicy)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected boolean doesAnyExtractedInterfaceExtends(PsiClass aClass)
protected boolean doMemberInfosContain(PsiMethod method)
protected boolean doMemberInfosContain(PsiField field)
protected UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected abstract PsiClass extractSuper(java.lang.String superClassName) throws IncorrectOperationException
IncorrectOperationException
protected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessor
refreshElements
in class BaseRefactoringProcessor
elements
- - refreshed elements that are returned by UsageViewDescriptor.getElements()protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite
in class BaseRefactoringProcessor