/** * {@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); }
public static void startUseSupertypeRefactoring(final IType type, final Shell shell) { UseSuperTypeProcessor processor= new UseSuperTypeProcessor(type); Refactoring refactoring= new ProcessorBasedRefactoring(processor); UseSupertypeWizard wizard= new UseSupertypeWizard(processor, refactoring); new RefactoringStarter().activate(wizard, shell, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringSaveHelper.SAVE_REFACTORING); }
@Override public final Refactoring createRefactoring(JavaRefactoringDescriptor descriptor, RefactoringStatus status) throws CoreException { JavaRefactoringArguments arguments= new JavaRefactoringArguments(descriptor.getProject(), retrieveArgumentMap(descriptor)); UseSuperTypeProcessor processor= new UseSuperTypeProcessor(arguments, status); return new ProcessorBasedRefactoring(processor); }
@Override public final Refactoring createRefactoring(JavaRefactoringDescriptor descriptor, RefactoringStatus status) throws CoreException { JavaRefactoringArguments arguments= new JavaRefactoringArguments(descriptor.getProject(), retrieveArgumentMap(descriptor)); UseSuperTypeProcessor processor= new UseSuperTypeProcessor(arguments, status); return new ProcessorBasedRefactoring(processor); }
public static void startUseSupertypeRefactoring(final IType type, final Shell shell) { UseSuperTypeProcessor processor= new UseSuperTypeProcessor(type); Refactoring refactoring= new ProcessorBasedRefactoring(processor); UseSupertypeWizard wizard= new UseSupertypeWizard(processor, refactoring); new RefactoringStarter().activate(wizard, shell, RefactoringMessages.OpenRefactoringWizardAction_refactoring, RefactoringSaveHelper.SAVE_REFACTORING); }