public class PullUpProcessor extends BaseRefactoringProcessor implements PullUpData
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
PullUpProcessor(PsiClass sourceClass,
PsiClass targetSuperClass,
MemberInfo[] membersToMove,
DocCommentPolicy javaDocPolicy) |
createConflictsDialog, customizeUsagesView, doRun, execute, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, preprocessUsages, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public PullUpProcessor(PsiClass sourceClass, PsiClass targetSuperClass, MemberInfo[] membersToMove, DocCommentPolicy javaDocPolicy)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected java.lang.String getRefactoringId()
getRefactoringId
in class BaseRefactoringProcessor
protected RefactoringEventData getBeforeData()
getBeforeData
in class BaseRefactoringProcessor
protected RefactoringEventData getAfterData(UsageInfo [] usages)
getAfterData
in class BaseRefactoringProcessor
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
public void moveMembersToBase() throws IncorrectOperationException
IncorrectOperationException
public void moveFieldInitializations() throws IncorrectOperationException
IncorrectOperationException
public static boolean checkedInterfacesContain(java.util.Collection<? extends MemberInfoBase<? extends PsiMember>> memberInfos, PsiMethod psiMethod)
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite
in class BaseRefactoringProcessor
public PsiClass getSourceClass()
getSourceClass
in interface PullUpData
public PsiClass getTargetClass()
getTargetClass
in interface PullUpData
public DocCommentPolicy getDocCommentPolicy()
getDocCommentPolicy
in interface PullUpData
public java.util.Set<PsiMember> getMembersToMove()
getMembersToMove
in interface PullUpData
public java.util.Set<PsiMember> getMovedMembers()
getMovedMembers
in interface PullUpData
public Project getProject()
getProject
in interface PullUpData