public abstract class MoveHandlerDelegate
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<MoveHandlerDelegate> |
EP_NAME |
Constructor and Description |
---|
MoveHandlerDelegate() |
Modifier and Type | Method and Description |
---|---|
PsiElement [] |
adjustForMove(Project project,
PsiElement[] sourceElements,
PsiElement targetElement) |
PsiElement |
adjustTargetForMove(DataContext dataContext,
PsiElement targetContainer) |
boolean |
canMove(DataContext dataContext) |
boolean |
canMove(PsiElement[] elements,
PsiElement targetContainer)
Deprecated.
Please overload
canMove(PsiElement[], PsiElement, PsiReference) instead. |
boolean |
canMove(PsiElement[] elements,
PsiElement targetContainer,
PsiReference reference) |
void |
collectFilesOrDirsFromContext(DataContext dataContext,
java.util.Set<PsiElement> filesOrDirs) |
void |
doMove(Project project,
PsiElement[] elements,
PsiElement targetContainer,
MoveCallback callback) |
java.lang.String |
getActionName(PsiElement [] elements) |
boolean |
isMoveRedundant(PsiElement source,
PsiElement target) |
boolean |
isValidTarget(PsiElement targetElement,
PsiElement[] sources) |
boolean |
supportsLanguage(Language language) |
boolean |
tryToMove(PsiElement element,
Project project,
DataContext dataContext,
PsiReference reference,
Editor editor) |
public static final ExtensionPointName<MoveHandlerDelegate> EP_NAME
public boolean canMove(PsiElement[] elements, PsiElement targetContainer, PsiReference reference)
@Deprecated public boolean canMove(PsiElement[] elements, PsiElement targetContainer)
canMove(PsiElement[], PsiElement, PsiReference)
instead.public boolean canMove(DataContext dataContext)
public boolean isValidTarget(PsiElement targetElement, PsiElement[] sources)
public void doMove(Project project, PsiElement[] elements, PsiElement targetContainer, MoveCallback callback)
public PsiElement adjustTargetForMove(DataContext dataContext, PsiElement targetContainer)
public PsiElement [] adjustForMove(Project project, PsiElement[] sourceElements, PsiElement targetElement)
public boolean tryToMove(PsiElement element, Project project, DataContext dataContext, PsiReference reference, Editor editor)
public void collectFilesOrDirsFromContext(DataContext dataContext, java.util.Set<PsiElement> filesOrDirs)
public boolean isMoveRedundant(PsiElement source, PsiElement target)
public java.lang.String getActionName(PsiElement [] elements)
public boolean supportsLanguage(Language language)