public class MoveInnerProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveInnerProcessor(Project project,
MoveCallback moveCallback) |
MoveInnerProcessor(Project project,
PsiClass innerClass,
java.lang.String name,
boolean passOuterClass,
java.lang.String parameterName,
PsiElement targetContainer) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
protected UsageInfo [] |
findUsages()
Is called inside atomic action.
|
protected java.lang.String |
getCommandName() |
PsiClass |
getInnerClass() |
java.lang.String |
getNewClassName() |
java.lang.String |
getParameterName() |
boolean |
isSearchInComments() |
boolean |
isSearchInNonJavaFiles() |
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) |
void |
setSearchInComments(boolean searchInComments) |
void |
setSearchInNonJavaFiles(boolean searchInNonJavaFiles) |
void |
setup(PsiClass innerClass,
java.lang.String className,
boolean passOuterClass,
java.lang.String parameterName,
boolean searchInComments,
boolean searchInNonJava,
PsiElement targetContainer) |
boolean |
shouldPassParameter() |
createConflictsDialog, customizeUsagesView, doRun, execute, getAfterData, getBeforeData, getElementsToWrite, getRefactoringId, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public MoveInnerProcessor(Project project, MoveCallback moveCallback)
public MoveInnerProcessor(Project project, PsiClass innerClass, java.lang.String name, boolean passOuterClass, java.lang.String parameterName, PsiElement targetContainer)
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected 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()public boolean isSearchInComments()
public void setSearchInComments(boolean searchInComments)
public boolean isSearchInNonJavaFiles()
public void setSearchInNonJavaFiles(boolean searchInNonJavaFiles)
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected void performPsiSpoilingRefactoring()
BaseRefactoringProcessor
BaseRefactoringProcessor.performRefactoring(UsageInfo[])
.performPsiSpoilingRefactoring
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredpublic void setup(PsiClass innerClass, java.lang.String className, boolean passOuterClass, java.lang.String parameterName, boolean searchInComments, boolean searchInNonJava, PsiElement targetContainer)
public PsiClass getInnerClass()
public java.lang.String getNewClassName()
public boolean shouldPassParameter()
public java.lang.String getParameterName()
public void setOpenInEditor(boolean openInEditor)