if (!name.endsWith(".java")) return JavaPlugin.getResourceString(PREFIX+ERROR_WRONG_EXTENSION);
if (!name.endsWith(".java")) return ReorgMessages.getString("cuFileReorgSupport.error.invalidEnding");
	public String isValidNewName(Object original, Object destination, String name) {		IPackageFragment pkg= getDestination(destination);		if (pkg == null)			return null;					// the order is important here since getCompilationUnit() throws an exception		// if the name is invalid.		if (original instanceof ICompilationUnit) {			if (!name.endsWith(".java"))				return JavaPlugin.getResourceString(PREFIX+ERROR_WRONG_EXTENSION);			if (!JavaConventions.validateCompilationUnitName(name).isOK())				return JavaPlugin.getResourceString(PREFIX+ERROR_INVALID_NAME);		}		try {			if (pkg.getCompilationUnit(name).exists() || ReorgSupport.getResource(pkg, name) != null)				return JavaPlugin.getResourceString(PREFIX+ERROR_DUPLICATE);		} catch (JavaModelException e) {		}		return null;	}