/** * {@inheritDoc} */ public final Refactoring createRefactoring(final RefactoringDescriptor descriptor) throws CoreException { return new PushDownRefactoring(new PushDownRefactoringProcessor(null)); } }
public static void startPushDownRefactoring(final IMember[] members, final Shell shell) throws JavaModelException { if (!RefactoringAvailabilityTester.isPushDownAvailable(members)) return; final PushDownRefactoring refactoring= new PushDownRefactoring(new PushDownRefactoringProcessor(members)); new RefactoringStarter().activate(refactoring, new PushDownWizard(refactoring), shell, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringSaveHelper.SAVE_JAVA_ONLY_UPDATES); }