/** * Returns the refactoring processor. * * @return the refactoring processor */ protected ExtractSupertypeProcessor getProcessor() { return getExtractSuperTypeRefactoring().getExtractSupertypeProcessor(); }
/** * Returns the extract supertype processor. * * @return the extract supertype processor. */ public ExtractSupertypeProcessor getExtractSupertypeProcessor() { return (ExtractSupertypeProcessor) getProcessor(); }
/** * {@inheritDoc} */ public final Refactoring createRefactoring(final RefactoringDescriptor descriptor) throws CoreException { return new ExtractSupertypeRefactoring(new ExtractSupertypeProcessor(null, null)); } }
public static void startExtractSupertypeRefactoring(final IMember[] members, final Shell shell) throws JavaModelException { if (!RefactoringAvailabilityTester.isExtractSupertypeAvailable(members)) return; IJavaProject project= null; if (members != null && members.length > 0) project= members[0].getJavaProject(); final ExtractSupertypeRefactoring refactoring= new ExtractSupertypeRefactoring(new ExtractSupertypeProcessor(members, JavaPreferencesSettings.getCodeGenerationSettings(project))); new RefactoringStarter().activate(refactoring, new ExtractSupertypeWizard(refactoring), shell, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringSaveHelper.SAVE_JAVA_ONLY_UPDATES); }
/** * Returns the refactoring processor. * * @return the refactoring processor */ protected ExtractSupertypeProcessor getProcessor() { return getExtractSuperTypeRefactoring().getExtractSupertypeProcessor(); }