Package com.intellij.refactoring.move.moveClassesOrPackages

Examples of com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesProcessor


          PsiPackage newParentPackage = JavaPsiFacade.getInstance(myPsiManager.getProject()).findPackage(targetDirName);
          assertNotNull(newParentPackage);
          final PsiDirectory[] dirs = newParentPackage.getDirectories();
          assertEquals(dirs.length, 1);

          new MoveClassesOrPackagesProcessor(myProject, PsiUtilCore.toPsiElementArray(files),
                                             new SingleSourceRootMoveDestination(PackageWrapper.create(newParentPackage),
                                                                                 newParentPackage.getDirectories()[0]),
                                             true, true, null).run();
        }
        FileDocumentManager.getInstance().saveAllDocuments();
View Full Code Here

TOP

Related Classes of com.intellij.refactoring.move.moveClassesOrPackages.MoveClassesOrPackagesProcessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.