public class MoveFilesOrDirectoriesHandler extends MoveHandlerDelegate
EP_NAME
Constructor and Description |
---|
MoveFilesOrDirectoriesHandler() |
Modifier and Type | Method and Description |
---|---|
PsiElement [] |
adjustForMove(Project project,
PsiElement[] sourceElements,
PsiElement targetElement) |
boolean |
canMove(PsiElement[] elements,
PsiElement targetContainer,
PsiReference reference) |
void |
doMove(Project project,
PsiElement[] elements,
PsiElement targetContainer,
MoveCallback callback) |
void |
doMove(PsiElement[] elements,
PsiElement targetContainer) |
java.lang.String |
getActionName(PsiElement [] elements) |
static boolean |
isValidTarget(PsiElement psiElement) |
boolean |
isValidTarget(PsiElement targetElement,
PsiElement[] sources) |
boolean |
tryToMove(PsiElement element,
Project project,
DataContext dataContext,
PsiReference reference,
Editor editor) |
adjustTargetForMove, canMove, canMove, collectFilesOrDirsFromContext, isMoveRedundant, supportsLanguage
public boolean canMove(PsiElement[] elements, PsiElement targetContainer, PsiReference reference)
canMove
in class MoveHandlerDelegate
public boolean isValidTarget(PsiElement targetElement, PsiElement[] sources)
isValidTarget
in class MoveHandlerDelegate
public static boolean isValidTarget(PsiElement psiElement)
public void doMove(PsiElement[] elements, PsiElement targetContainer)
public PsiElement [] adjustForMove(Project project, PsiElement[] sourceElements, PsiElement targetElement)
adjustForMove
in class MoveHandlerDelegate
public void doMove(Project project, PsiElement[] elements, PsiElement targetContainer, MoveCallback callback)
doMove
in class MoveHandlerDelegate
public boolean tryToMove(PsiElement element, Project project, DataContext dataContext, PsiReference reference, Editor editor)
tryToMove
in class MoveHandlerDelegate
public java.lang.String getActionName(PsiElement [] elements)
getActionName
in class MoveHandlerDelegate