public class SingleSourceRootMoveDestination extends java.lang.Object implements MoveDestination
Constructor and Description |
---|
SingleSourceRootMoveDestination(PackageWrapper aPackage,
PsiDirectory targetDirectory) |
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 source) |
public SingleSourceRootMoveDestination(PackageWrapper aPackage, PsiDirectory targetDirectory)
public PackageWrapper getTargetPackage()
getTargetPackage
in interface MoveDestination
public PsiDirectory getTargetIfExists(PsiDirectory source)
getTargetIfExists
in interface MoveDestination
public PsiDirectory getTargetIfExists(PsiFile source)
getTargetIfExists
in interface MoveDestination
public PsiDirectory getTargetDirectory(PsiDirectory source)
MoveDestination
getTargetDirectory
in interface MoveDestination
public java.lang.String verify(PsiFile source)
verify
in interface MoveDestination
public java.lang.String verify(PsiDirectory source)
verify
in interface MoveDestination
public java.lang.String verify(PsiPackage source)
verify
in interface MoveDestination
public void analyzeModuleConflicts(java.util.Collection<? extends PsiElement> elements, MultiMap<PsiElement,java.lang.String> conflicts, UsageInfo[] usages)
analyzeModuleConflicts
in interface MoveDestination
public boolean isTargetAccessible(Project project, VirtualFile place)
isTargetAccessible
in interface MoveDestination
public PsiDirectory getTargetDirectory(PsiFile source)
MoveDestination
getTargetDirectory
in interface MoveDestination