/** * {@inheritDoc} */ public Refactoring createRefactoring(final RefactoringDescriptor descriptor) throws CoreException { return new ChangeSignatureRefactoring(null); } }
public static void startChangeSignatureRefactoring(final IMethod method, final SelectionDispatchAction action, final Shell shell) throws JavaModelException { if (!RefactoringAvailabilityTester.isChangeSignatureAvailable(method)) return; final ChangeSignatureRefactoring refactoring= new ChangeSignatureRefactoring(method); final UserInterfaceStarter starter= new UserInterfaceStarter() {
if (fArguments != null) { fChangeSignatureRefactoring= new ChangeSignatureRefactoring(null); result= fChangeSignatureRefactoring.initialize(fArguments); if (!result.hasFatalError()) { fChangeSignatureRefactoring= RefactoringAvailabilityTester.isChangeSignatureAvailable(fMethod) ? new ChangeSignatureRefactoring(fMethod) : null; if (fChangeSignatureRefactoring == null) return RefactoringStatus.createFatalErrorStatus(RefactoringCoreMessages.IntroduceParameterRefactoring_expression_in_method); fChangeSignatureRefactoring= RefactoringAvailabilityTester.isChangeSignatureAvailable(method) ? new ChangeSignatureRefactoring(method) : null; if (fChangeSignatureRefactoring == null) { String msg= Messages.format(RefactoringCoreMessages.IntroduceParameterRefactoring_cannot_introduce, entry.getMessage());