public class MoveInstanceMethodProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveInstanceMethodProcessor(Project project,
PsiMethod method,
PsiVariable targetVariable,
java.lang.String newVisibility,
boolean openInEditor,
java.util.Map<PsiClass,java.lang.String> oldClassParameterNames) |
MoveInstanceMethodProcessor(Project project,
PsiMethod method,
PsiVariable targetVariable,
java.lang.String newVisibility,
java.util.Map<PsiClass,java.lang.String> oldClassParameterNames) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
PsiMethod |
getMethod() |
PsiClass |
getTargetClass() |
PsiVariable |
getTargetVariable() |
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, doRun, 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 MoveInstanceMethodProcessor(Project project, PsiMethod method, PsiVariable targetVariable, java.lang.String newVisibility, java.util.Map<PsiClass,java.lang.String> oldClassParameterNames)
public MoveInstanceMethodProcessor(Project project, PsiMethod method, PsiVariable targetVariable, java.lang.String newVisibility, boolean openInEditor, java.util.Map<PsiClass,java.lang.String> oldClassParameterNames)
public PsiMethod getMethod()
public PsiVariable getTargetVariable()
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected 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 java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
public PsiClass getTargetClass()
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor