public abstract class DirectoryAsPackageRenameHandlerBase<T extends PsiDirectoryContainer> extends DirectoryRenameHandlerBase
EP_NAME
Constructor and Description |
---|
DirectoryAsPackageRenameHandlerBase() |
Modifier and Type | Method and Description |
---|---|
static void |
buildMultipleDirectoriesInPackageMessage(java.lang.StringBuffer message,
java.lang.String packageQname,
PsiDirectory[] directories) |
protected abstract BaseRefactoringProcessor |
createProcessor(java.lang.String newQName,
Project project,
PsiDirectory[] dirsToRename,
boolean searchInComments,
boolean searchInNonJavaFiles) |
protected void |
doRename(PsiElement element,
Project project,
PsiElement nameSuggestionContext,
Editor editor) |
protected abstract T |
getPackage(PsiDirectory psiDirectory) |
protected abstract java.lang.String |
getQualifiedName(T aPackage) |
protected abstract boolean |
isIdentifier(java.lang.String name,
Project project) |
protected boolean |
isSuitableDirectory(PsiDirectory directory) |
protected abstract VirtualFile[] |
occursInPackagePrefixes(T aPackage) |
adjustForRename, getActionTitle, invoke, invoke, isAvailableOnDataContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isRenaming
protected abstract VirtualFile[] occursInPackagePrefixes(T aPackage)
protected abstract boolean isIdentifier(java.lang.String name, Project project)
protected abstract java.lang.String getQualifiedName(T aPackage)
protected abstract T getPackage(PsiDirectory psiDirectory)
protected abstract BaseRefactoringProcessor createProcessor(java.lang.String newQName, Project project, PsiDirectory[] dirsToRename, boolean searchInComments, boolean searchInNonJavaFiles)
protected boolean isSuitableDirectory(PsiDirectory directory)
isSuitableDirectory
in class DirectoryRenameHandlerBase
protected void doRename(PsiElement element, Project project, PsiElement nameSuggestionContext, Editor editor)
doRename
in class DirectoryRenameHandlerBase
public static void buildMultipleDirectoriesInPackageMessage(java.lang.StringBuffer message, java.lang.String packageQname, PsiDirectory[] directories)