use of com.intellij.refactoring.BaseRefactoringProcessor in project intellij-community by JetBrains.
the class DirectoryAsPackageRenameHandlerBase method renameDirs.
private void renameDirs(final Project project, final PsiElement nameSuggestionContext, final Editor editor, final PsiDirectory contextDirectory, final T aPackage, final PsiDirectory... dirsToRename) {
final RenameDialog dialog = new RenameDialog(project, contextDirectory, nameSuggestionContext, editor) {
@Override
protected void doAction() {
String newQName = StringUtil.getQualifiedName(StringUtil.getPackageName(getQualifiedName(aPackage)), getNewName());
BaseRefactoringProcessor moveProcessor = createProcessor(newQName, project, dirsToRename, isSearchInComments(), isSearchInNonJavaFiles());
invokeRefactoring(moveProcessor);
}
};
dialog.show();
}
Aggregations