public class MoveInstanceMethodProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeExceptionmyPrepareSuccessfulSwingThreadCallback, 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, skipNonCodeUsagespublic 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 BaseRefactoringProcessorprotected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessorpreprocessUsages in class BaseRefactoringProcessorrefUsages - usages to be filteredprotected UsageInfo [] findUsages()
BaseRefactoringProcessorfindUsages in class BaseRefactoringProcessorprotected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessorrefreshElements in class BaseRefactoringProcessorelements - - refreshed elements that are returned by UsageViewDescriptor.getElements()protected java.lang.String getCommandName()
getCommandName in class BaseRefactoringProcessorpublic PsiClass getTargetClass()
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessorperformRefactoring in class BaseRefactoringProcessor