public class MoveMembersProcessor extends BaseRefactoringProcessor
Modifier and Type | Class and Description |
---|---|
static class |
MoveMembersProcessor.MoveMembersUsageInfo |
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveMembersProcessor(Project project,
MoveCallback moveCallback,
MoveMembersOptions options) |
MoveMembersProcessor(Project project,
MoveCallback moveCallback,
MoveMembersOptions options,
boolean openInEditor) |
MoveMembersProcessor(Project project,
MoveMembersOptions options) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
void |
doRun() |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
java.util.List<PsiElement> |
getMembers() |
PsiClass |
getTargetClass() |
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.
|
createConflictsDialog, customizeUsagesView, execute, getAfterData, getBeforeData, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public MoveMembersProcessor(Project project, MoveMembersOptions options)
public MoveMembersProcessor(Project project, MoveCallback moveCallback, MoveMembersOptions options)
public MoveMembersProcessor(Project project, MoveCallback moveCallback, MoveMembersOptions options, boolean openInEditor)
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 void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredpublic void doRun()
doRun
in class BaseRefactoringProcessor
public java.util.List<PsiElement> getMembers()
public PsiClass getTargetClass()