public class MoveClassToInnerProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
static Key<java.util.List<NonCodeUsageInfo>> |
ourNonCodeUsageKey |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveClassToInnerProcessor(Project project,
PsiClass[] classesToMove,
PsiClass targetClass,
boolean searchInComments,
boolean searchInNonJavaFiles,
MoveCallback moveCallback) |
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) |
protected void |
performPsiSpoilingRefactoring()
Refactorings that spoil PSI (write something directly to documents etc.) should
do that in this method.
This method is called immediately after . |
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.
|
void |
setOpenInEditor(boolean openInEditor) |
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public static final Key<java.util.List<NonCodeUsageInfo>> ourNonCodeUsageKey
public MoveClassToInnerProcessor(Project project, PsiClass[] classesToMove, PsiClass targetClass, boolean searchInComments, boolean searchInNonJavaFiles, MoveCallback moveCallback)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
public UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredprotected 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 void performPsiSpoilingRefactoring()
BaseRefactoringProcessor
BaseRefactoringProcessor.performRefactoring(UsageInfo[])
.performPsiSpoilingRefactoring
in class BaseRefactoringProcessor
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected java.util.Collection<? extends PsiElement> getElementsToWrite(UsageViewDescriptor descriptor)
getElementsToWrite
in class BaseRefactoringProcessor
public MultiMap<PsiElement,java.lang.String> getConflicts(UsageInfo[] usages)
public void setOpenInEditor(boolean openInEditor)