result.addError("Renaming " + getMethod().getElementName() +" requires renaming a native method. Refactoring will cause UnsatisfiedLinkError on runtime.");
result.addError("Renaming " + getMethod().getElementName() +" requires renaming a native method. Renaming will cause UnsatisfiedLinkError on runtime.");
	public RefactoringStatus checkInput(IProgressMonitor pm) throws JavaModelException{		pm.beginTask("", 12);		pm.subTask("checking preconditions");		RefactoringStatus result= new RefactoringStatus();		result.merge(super.checkInput(new SubProgressMonitor(pm, 1)));		pm.subTask("checking preconditions");		if (overridesAnotherMethod(new SubProgressMonitor(pm, 2)))			result.addError("Overrides another method - rename in the most abstract class or in an interface.");		pm.subTask("analyzing hierarchy");		if (isDeclaredInInterface(new SubProgressMonitor(pm, 2)))			result.addError("Method " + getMethod().getElementName( ) + " is declared in an interface - rename it there.");		pm.subTask("analyzing hierarchy");		if (hierarchyDeclaresSimilarNativeMethod(new SubProgressMonitor(pm, 2)))			result.addError("Renaming " + getMethod().getElementName() +" requires renaming a native method. Refactoring will cause UnsatisfiedLinkError on runtime.");		pm.subTask("analyzing hierarchy");		if (hierarchyDeclaresMethodName(new SubProgressMonitor(pm, 2), getMethod(), getNewName()))			result.addError("Hierarchy declares a method " + getNewName() + " with the same number of parameters.");				result.merge(analyzeCompilationUnits(new SubProgressMonitor(pm, 3)));			pm.done();		return result;	}