public class CopyClassesHandler extends CopyHandlerDelegateBase
EP_NAME
Constructor and Description |
---|
CopyClassesHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopy(PsiElement[] elements,
boolean fromUpdate) |
static boolean |
canCopyClass(boolean fromUpdate,
PsiElement... elements) |
static boolean |
canCopyClass(PsiElement... elements) |
void |
doClone(PsiElement element) |
void |
doCopy(PsiElement[] elements,
PsiDirectory defaultTargetDirectory) |
static java.util.Collection<PsiFile> |
doCopyClasses(java.util.Map<PsiFile,PsiClass[]> fileToClasses,
java.util.HashMap<PsiFile,java.lang.String> map,
java.lang.String copyClassName,
PsiDirectory targetDirectory,
Project project) |
static java.util.Collection<PsiFile> |
doCopyClasses(java.util.Map<PsiFile,PsiClass[]> fileToClasses,
java.lang.String copyClassName,
PsiDirectory targetDirectory,
Project project) |
boolean |
forbidToClone(PsiElement[] elements,
boolean fromUpdate) |
java.lang.String |
getActionName(PsiElement[] elements) |
protected static boolean |
isSynthetic(PsiClass aClass) |
canCopy
public boolean forbidToClone(PsiElement[] elements, boolean fromUpdate)
forbidToClone
in class CopyHandlerDelegateBase
public boolean canCopy(PsiElement[] elements, boolean fromUpdate)
canCopy
in class CopyHandlerDelegateBase
public java.lang.String getActionName(PsiElement[] elements)
public static boolean canCopyClass(PsiElement... elements)
public static boolean canCopyClass(boolean fromUpdate, PsiElement... elements)
public void doCopy(PsiElement[] elements, PsiDirectory defaultTargetDirectory)
public void doClone(PsiElement element)
public static java.util.Collection<PsiFile> doCopyClasses(java.util.Map<PsiFile,PsiClass[]> fileToClasses, java.lang.String copyClassName, PsiDirectory targetDirectory, Project project) throws IncorrectOperationException
IncorrectOperationException
public static java.util.Collection<PsiFile> doCopyClasses(java.util.Map<PsiFile,PsiClass[]> fileToClasses, java.util.HashMap<PsiFile,java.lang.String> map, java.lang.String copyClassName, PsiDirectory targetDirectory, Project project) throws IncorrectOperationException
IncorrectOperationException
protected static boolean isSynthetic(PsiClass aClass)