public class MoveFilesOrDirectoriesProcessor extends BaseRefactoringProcessor
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
Modifier and Type | Field and Description |
---|---|
protected PsiElement[] |
myElementsToMove |
protected boolean |
mySearchForReferences |
protected boolean |
mySearchInComments |
protected boolean |
mySearchInNonJavaFiles |
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveFilesOrDirectoriesProcessor(Project project,
PsiElement[] elements,
PsiDirectory newParent,
boolean searchForReferences,
boolean searchInComments,
boolean searchInNonJavaFiles,
MoveCallback moveCallback,
java.lang.Runnable prepareSuccessfulCallback) |
MoveFilesOrDirectoriesProcessor(Project project,
PsiElement[] elements,
PsiDirectory newParent,
boolean searchInComments,
boolean searchInNonJavaFiles,
MoveCallback moveCallback,
java.lang.Runnable prepareSuccessfulCallback) |
Modifier and Type | Method and Description |
---|---|
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() |
protected java.lang.String |
getRefactoringId() |
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 void |
refreshElements(PsiElement [] elements)
is called when usage search is re-run.
|
protected void |
retargetUsages(UsageInfo[] usages,
java.util.Map<PsiElement,PsiElement> oldToNewMap) |
protected boolean |
shouldDisableAccessChecks() |
createConflictsDialog, customizeUsagesView, doRun, execute, getElementsToWrite, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, prepareConflictsDialog, prepareSuccessful, preprocessUsages, previewRefactoring, processConflicts, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, showConflicts, showConflicts, skipNonCodeUsages
protected final PsiElement[] myElementsToMove
protected final boolean mySearchForReferences
protected final boolean mySearchInComments
protected final boolean mySearchInNonJavaFiles
public MoveFilesOrDirectoriesProcessor(Project project, PsiElement[] elements, PsiDirectory newParent, boolean searchInComments, boolean searchInNonJavaFiles, MoveCallback moveCallback, java.lang.Runnable prepareSuccessfulCallback)
public MoveFilesOrDirectoriesProcessor(Project project, PsiElement[] elements, PsiDirectory newParent, boolean searchForReferences, boolean searchInComments, boolean searchInNonJavaFiles, MoveCallback moveCallback, java.lang.Runnable prepareSuccessfulCallback)
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()protected void performPsiSpoilingRefactoring()
BaseRefactoringProcessor
BaseRefactoringProcessor.performRefactoring(UsageInfo[])
.performPsiSpoilingRefactoring
in class BaseRefactoringProcessor
protected void performRefactoring(UsageInfo [] usages)
BaseRefactoringProcessor
performRefactoring
in class BaseRefactoringProcessor
protected java.lang.String getRefactoringId()
getRefactoringId
in class BaseRefactoringProcessor
protected RefactoringEventData getBeforeData()
getBeforeData
in class BaseRefactoringProcessor
protected RefactoringEventData getAfterData(UsageInfo [] usages)
getAfterData
in class BaseRefactoringProcessor
protected void retargetUsages(UsageInfo[] usages, java.util.Map<PsiElement,PsiElement> oldToNewMap)
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
protected boolean shouldDisableAccessChecks()
shouldDisableAccessChecks
in class BaseRefactoringProcessor