Bug 23366 Modify parameters refactoring remebers last state [refactoring]
2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java
}
		
	private boolean canRun(ITextSelection selection){
		IJavaElement[] elements= resolveElements();
		if (elements.length > 1)
			return false;
		if (elements.length == 0){
			try {
				IJavaElement selected= SelectionConverter.getInputAsCompilationUnit(fEditor).getElementAt(selection.getOffset());
				return (selected instanceof IMethod && shouldAcceptElement((IMethod)selected));
			} catch (JavaModelException e) {
				ExceptionHandler.handle(e, RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"), RefactoringMessages.getString("OpenRefactoringWizardAction.exception")); 
				return false;
			}
		}		
		return (elements[0] instanceof IMethod) && shouldAcceptElement((IMethod)elements[0]);
	}
	private boolean shouldAcceptElement(IMethod method) {
		try{
			fRefactoring= new ModifyParametersRefactoring(method);
			return fRefactoring.checkPreactivation().isOK();
		} catch (JavaModelException e) {
			
			if (JavaModelUtil.filterNotPresentException(e))
				JavaPlugin.log(e); 
			return false;
		}	
	}
		
	private IJavaElement[] resolveElements() {