Examples of RefactoringWizard


Examples of org.eclipse.ltk.ui.refactoring.RefactoringWizard

        moduleName = moduleName.substring(0, moduleName.lastIndexOf("."));

        final MoveFunctionRefactoring refactoring = new MoveFunctionRefactoring();
        refactoring.setUserInput(moduleName);
        final RefactoringWizard wizard = new DefaultWranglerRefactoringWizard(
                refactoring, RefactoringWizard.DIALOG_BASED_USER_INTERFACE,
                new ArrayList<WranglerPage>());

        final Shell shell = PlatformUI.getWorkbench().getDisplay().getActiveShell();
View Full Code Here

Examples of org.eclipse.ltk.ui.refactoring.RefactoringWizard

      IMovePolicy policy = ReorgPolicyFactory.createMovePolicy(resources, javaElements);
      if (policy.canEnable()) {
        JavaMoveProcessor processor = new JavaMoveProcessor(policy);
        Refactoring refactoring = new MoveRefactoring(processor);
       
        RefactoringWizard wizard = null;
       
        // Hack to allow usage of this refactoring on Eclipse < 3.4 and 3.4
        if (SpringCoreUtils.isEclipseSameOrNewer(3, 4)) {
          // RefactoringWizard wizard = new ReorgMoveWizard(processor,refactoring);
          Constructor cons = ClassUtils.getConstructorIfAvailable(ReorgMoveWizard.class, new Class[] {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.