Bug 47874 Change Method Signature: enable if cursor is in signature [refactoring]
M5 Currently the user has to select the method name. Would be better if the refactoring will work if the cursor is inside the method's signature.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java
private static ChangeSignatureRefactoring createRefactoring(IMethod method) throws JavaModelException{
		return ChangeSignatureRefactoring.create(method, JavaPreferencesSettings.getCodeGenerationSettings());
	}
	
	private IJavaElement[] resolveElements() {
		return SelectionConverter.codeResolveHandled(fEditor, getShell(),  RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"));  
	}
	private static RefactoringWizard createWizard(ChangeSignatureRefactoring refactoring){
		return new ChangeSignatureWizard(refactoring);
	}
	
	private void startRefactoring(IMethod method) throws JavaModelException {
		ChangeSignatureRefactoring refactoring= createRefactoring(method); 
		Assert.isNotNull(refactoring);
		
		if (!ActionUtil.isProcessable(getShell(), refactoring.getMethod()))
			return;
		Object newElementToProcess= new RefactoringStarter().activate(refactoring, createWizard(refactoring), getShell(), RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"), true); 
		if (newElementToProcess == null)
			return;
		IStructuredSelection mockSelection= new StructuredSelection(newElementToProcess);
		selectionChanged(mockSelection);
		if (isEnabled())
			run(mockSelection);
		else
			MessageDialog.openInformation(getShell(), ActionMessages.getString("ModifyParameterAction.problem.title"), ActionMessages.getString("ModifyParameterAction.problem.message"));	 
	}
}