public abstract class AutocreatingMoveDestination extends java.lang.Object implements MoveDestination
Modifier and Type | Field and Description |
---|---|
protected ProjectFileIndex |
myFileIndex |
protected PsiManager |
myManager |
protected PackageWrapper |
myPackage |
Constructor and Description |
---|
AutocreatingMoveDestination(PackageWrapper targetPackage) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
checkCanCreateInSourceRoot(VirtualFile targetSourceRoot) |
abstract PsiDirectory |
getTargetDirectory(PsiDirectory source)
Invoked in command & write action
|
abstract PsiDirectory |
getTargetDirectory(PsiFile source)
Invoked in command & write action
|
abstract PackageWrapper |
getTargetPackage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyzeModuleConflicts, getTargetIfExists, getTargetIfExists, isTargetAccessible, verify, verify, verify
protected final PackageWrapper myPackage
protected final PsiManager myManager
protected final ProjectFileIndex myFileIndex
public AutocreatingMoveDestination(PackageWrapper targetPackage)
public abstract PackageWrapper getTargetPackage()
getTargetPackage
in interface MoveDestination
public abstract PsiDirectory getTargetDirectory(PsiDirectory source) throws IncorrectOperationException
MoveDestination
getTargetDirectory
in interface MoveDestination
IncorrectOperationException
public abstract PsiDirectory getTargetDirectory(PsiFile source) throws IncorrectOperationException
MoveDestination
getTargetDirectory
in interface MoveDestination
IncorrectOperationException
protected java.lang.String checkCanCreateInSourceRoot(VirtualFile targetSourceRoot)