public class MoveDirectoryWithClassesProcessor extends BaseRefactoringProcessor
Modifier and Type | Class and Description |
---|---|
static class |
MoveDirectoryWithClassesProcessor.TargetDirectoryWrapper |
BaseRefactoringProcessor.ConflictsInTestsException, BaseRefactoringProcessor.UnknownReferenceTypeException
myPrepareSuccessfulSwingThreadCallback, myProject, myRefactoringScope
Constructor and Description |
---|
MoveDirectoryWithClassesProcessor(Project project,
PsiDirectory[] directories,
PsiDirectory targetDirectory,
boolean searchInComments,
boolean searchInNonJavaFiles,
boolean includeSelf,
MoveCallback moveCallback) |
Modifier and Type | Method and Description |
---|---|
protected UsageViewDescriptor |
createUsageViewDescriptor(UsageInfo [] usages) |
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() |
MoveDirectoryWithClassesProcessor.TargetDirectoryWrapper |
getTargetDirectory(PsiDirectory dir) |
protected java.lang.String |
getTargetName() |
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 . |
void |
performRefactoring(UsageInfo [] usages)
Is called in a command and inside atomic action.
|
protected boolean |
preprocessUsages(Ref<UsageInfo[]> refUsages)
Is called inside atomic action.
|
createConflictsDialog, customizeUsagesView, doRun, execute, getElementsToWrite, getTransaction, getUndoConfirmationPolicy, isGlobalUndoAction, isPreviewUsages, isPreviewUsages, isToBeChanged, prepareConflictsDialog, prepareSuccessful, previewRefactoring, processConflicts, refreshElements, run, runWithDisabledPreview, setPrepareSuccessfulSwingThreadCallback, setPreviewUsages, shouldDisableAccessChecks, showConflicts, showConflicts, skipNonCodeUsages
public MoveDirectoryWithClassesProcessor(Project project, PsiDirectory[] directories, PsiDirectory targetDirectory, boolean searchInComments, boolean searchInNonJavaFiles, boolean includeSelf, MoveCallback moveCallback)
protected UsageViewDescriptor createUsageViewDescriptor(UsageInfo [] usages)
createUsageViewDescriptor
in class BaseRefactoringProcessor
protected java.lang.String getTargetName()
public UsageInfo [] findUsages()
BaseRefactoringProcessor
findUsages
in class BaseRefactoringProcessor
protected boolean preprocessUsages(Ref<UsageInfo[]> refUsages)
BaseRefactoringProcessor
preprocessUsages
in class BaseRefactoringProcessor
refUsages
- usages to be filteredpublic 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 performPsiSpoilingRefactoring()
BaseRefactoringProcessor
BaseRefactoringProcessor.performRefactoring(UsageInfo[])
.performPsiSpoilingRefactoring
in class BaseRefactoringProcessor
protected java.lang.String getCommandName()
getCommandName
in class BaseRefactoringProcessor
public MoveDirectoryWithClassesProcessor.TargetDirectoryWrapper getTargetDirectory(PsiDirectory dir)