public class ConvertToInstanceMethodProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeExceptionmyPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope| Constructor and Description |
|---|
ConvertToInstanceMethodProcessor(Project project,
PsiMethod method,
PsiParameter targetParameter,
java.lang.String newVisibility) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<PsiTypeParameter,PsiTypeParameter> |
buildTypeParameterReplacements() |
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected RefactoringEventData |
getAfterData(UsageInfo [] usages) |
protected RefactoringEventData |
getBeforeData() |
protected java.lang.String |
getCommandName() |
PsiMethod |
getMethod() |
protected java.lang.String |
getRefactoringId() |
PsiClass |
getTargetClass() |
PsiParameter |
getTargetParameter() |
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, getElementsToWrite, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsagespublic ConvertToInstanceMethodProcessor(Project project, PsiMethod method, PsiParameter targetParameter, java.lang.String newVisibility)
public PsiClass getTargetClass()
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor in class BaseRefactoringProcessorprotected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessorrefreshElements in class BaseRefactoringProcessorelements - - refreshed elements that are returned by UsageViewDescriptor.getElements()protected UsageInfo [] findUsages()
BaseRefactoringProcessorfindUsages in class BaseRefactoringProcessorprotected java.lang.String getRefactoringId()
getRefactoringId in class BaseRefactoringProcessorprotected RefactoringEventData getBeforeData()
getBeforeData in class BaseRefactoringProcessorprotected RefactoringEventData getAfterData(UsageInfo [] usages)
getAfterData in class BaseRefactoringProcessorprotected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessorpreprocessUsages in class BaseRefactoringProcessorrefUsages - usages to be filteredprotected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessorperformRefactoring in class BaseRefactoringProcessorprotected java.lang.String getCommandName()
getCommandName in class BaseRefactoringProcessorpublic java.util.Map<PsiTypeParameter,PsiTypeParameter> buildTypeParameterReplacements()
public PsiMethod getMethod()
public PsiParameter getTargetParameter()