/** * Returns the use super type processor. * * @return the refactoring processor */ public final UseSuperTypeProcessor getUseSuperTypeProcessor() { return (UseSuperTypeProcessor) getProcessor(); }
private UseSuperTypeProcessor getUseSupertypeProcessor() { return getUseSupertypeRefactoring().getUseSuperTypeProcessor(); }
/** * {@inheritDoc} */ public final Refactoring createRefactoring(final RefactoringDescriptor descriptor) throws CoreException { return new UseSuperTypeRefactoring(new UseSuperTypeProcessor(null, null)); }
public static void startUseSupertypeRefactoring(final IType type, final Shell shell) throws JavaModelException { final UseSuperTypeRefactoring refactoring= new UseSuperTypeRefactoring(new UseSuperTypeProcessor(type)); new RefactoringStarter().activate(refactoring, new UseSupertypeWizard(refactoring), shell, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringSaveHelper.SAVE_JAVA_ONLY_UPDATES); }
/** * {@inheritDoc} */ public final RefactoringStatus initialize(final RefactoringArguments arguments) { Assert.isNotNull(arguments); final RefactoringProcessor processor= getProcessor(); if (processor instanceof IScriptableRefactoring) { return ((IScriptableRefactoring) processor).initialize(arguments); } return RefactoringStatus.createFatalErrorStatus(Messages.format(RefactoringCoreMessages.ProcessorBasedRefactoring_error_unsupported_initialization, IJavaRefactorings.USE_SUPER_TYPE)); } }