use of com.intellij.refactoring.JavaRefactoringFactory in project intellij-plugins by JetBrains.
the class ActivatorRenameTest method renamePackage.
private void renamePackage() {
VirtualFile sourceRoot = ModuleRootManager.getInstance(myModule).getSourceRoots()[0];
JavaRefactoringFactory factory = JavaRefactoringFactory.getInstance(getProject());
MoveDestination moveDestination = factory.createSourceRootMoveDestination("tx", sourceRoot);
factory.createMoveClassesOrPackages(new PsiElement[] { myActivator }, moveDestination).run();
}
Aggregations