public class InlineToAnonymousClassProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
InlineToAnonymousClassProcessor(Project project,
PsiClass psiClass,
PsiCall callToInline,
boolean inlineThisOnly,
boolean searchInComments,
boolean searchInNonJavaFiles) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
MultiMap<PsiElement,java.lang.String> |
getConflicts(UsageInfo[] usages) |
protected java.util.Collection<? extends PsiElement> |
getElementsToWrite(UsageViewDescriptor descriptor) |
static PsiClassType |
getSuperType(PsiClass aClass) |
protected boolean |
isPreviewUsages(UsageInfo [] usages)
Is called inside atomic action.
|
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, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isToBeChanged, performPsiSpoilingRefactoring, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
public UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite
in class BaseRefactoringProcessor
protected void refreshElements(PsiElement [] elements)
BaseRefactoringProcessor
refreshElements
in class BaseRefactoringProcessor
elements
- - refreshed elements that are returned by UsageViewDescriptor.getElements()protected boolean isPreviewUsages(UsageInfo [] usages)
BaseRefactoringProcessor
isPreviewUsages
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredpublic MultiMap<PsiElement,java.lang.String> getConflicts(UsageInfo[] usages)
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
public static PsiClassType getSuperType(PsiClass aClass)
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor