public class AutocreatingSingleSourceRootMoveDestination extends AutocreatingMoveDestination
myFileIndex, myManager, myPackage
Constructor and Description |
---|
AutocreatingSingleSourceRootMoveDestination(PackageWrapper targetPackage,
VirtualFile sourceRoot) |
Modifier and Type | Method and Description |
---|---|
void |
analyzeModuleConflicts(java.util.Collection<? extends PsiElement> elements,
MultiMap<PsiElement,java.lang.String> conflicts,
UsageInfo[] usages) |
PsiDirectory |
getTargetDirectory(PsiDirectory source)
Invoked in command & write action
|
PsiDirectory |
getTargetDirectory(PsiFile source)
Invoked in command & write action
|
PsiDirectory |
getTargetIfExists(PsiDirectory source) |
PsiDirectory |
getTargetIfExists(PsiFile source) |
PackageWrapper |
getTargetPackage() |
boolean |
isTargetAccessible(Project project,
VirtualFile place) |
java.lang.String |
verify(PsiDirectory source) |
java.lang.String |
verify(PsiFile source) |
java.lang.String |
verify(PsiPackage aPackage) |
checkCanCreateInSourceRoot
public AutocreatingSingleSourceRootMoveDestination(PackageWrapper targetPackage, VirtualFile sourceRoot)
public PackageWrapper getTargetPackage()
getTargetPackage
in interface MoveDestination
getTargetPackage
in class AutocreatingMoveDestination
public PsiDirectory getTargetIfExists(PsiDirectory source)
public PsiDirectory getTargetIfExists(PsiFile source)
public PsiDirectory getTargetDirectory(PsiDirectory source) throws IncorrectOperationException
MoveDestination
getTargetDirectory
in interface MoveDestination
getTargetDirectory
in class AutocreatingMoveDestination
IncorrectOperationException
public PsiDirectory getTargetDirectory(PsiFile source) throws IncorrectOperationException
MoveDestination
getTargetDirectory
in interface MoveDestination
getTargetDirectory
in class AutocreatingMoveDestination
IncorrectOperationException
public java.lang.String verify(PsiFile source)
public java.lang.String verify(PsiDirectory source)
public java.lang.String verify(PsiPackage aPackage)
public void analyzeModuleConflicts(java.util.Collection<? extends PsiElement> elements, MultiMap<PsiElement,java.lang.String> conflicts, UsageInfo[] usages)
public boolean isTargetAccessible(Project project, VirtualFile place)