Package com.intellij.refactoring

Examples of com.intellij.refactoring.JavaRefactoringFactory


    CommandProcessor.getInstance().executeCommand(myFixture.getProject(), new Runnable() {
      public void run() {
        ApplicationManager.getApplication().runWriteAction(new Runnable() {
          public void run() {
            ModuleRootManager rootManager = TestUtil.getModuleRootManager(myFixture.getProject(), "t1");
            JavaRefactoringFactory factory = JavaRefactoringFactory.getInstance(myFixture.getProject());
            MoveDestination moveDestination = factory.createSourceRootMoveDestination("tx", rootManager.getSourceRoots()[0]);
            factory.createMoveClassesOrPackages(new PsiElement[]{activatorClass}, moveDestination).run();
          }
        });
      }
    }, "test", "testid");
    assertThat(manifest.getText(), endsWith("Bundle-Activator: tx.Activator\n"));
View Full Code Here


    CommandProcessor.getInstance().executeCommand(myFixture.getProject(), new Runnable() {
      public void run() {
        ApplicationManager.getApplication().runWriteAction(new Runnable() {
          public void run() {
            ModuleRootManager rootManager = TestUtil.getModuleRootManager(myFixture.getProject(), "t1");
            JavaRefactoringFactory factory = JavaRefactoringFactory.getInstance(myFixture.getProject());
            MoveDestination moveDestination = factory.createSourceRootMoveDestination("tx", rootManager.getSourceRoots()[0]);
            factory.createMoveClassesOrPackages(new PsiElement[]{activatorClass}, moveDestination).run();
          }
        });
      }
    }, "test", "testid");
    assertThat(configuration.getBundleActivator(), equalTo("tx.Activator"));
View Full Code Here

TOP

Related Classes of com.intellij.refactoring.JavaRefactoringFactory

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.