anchor.diff:  
   write_refactored_files(Results, Editor, Cmd) ->
       case Editor of
  -      emacs ->
  -	  refac_util:write_refactored_files_for_preview(Results, Cmd),
  -	  ChangedFiles = lists:map(fun ({{F, _F}, _AST}) -> F end, Results),
  -	  ?wrangler_io("The following files are to be changed by this refactoring:\n~p\n",
  -		       [ChangedFiles]),
  -	  {ok, ChangedFiles};
  -      eclipse ->
  +	emacs ->
  +	    refac_util:write_refactored_files_for_preview(Results, Cmd),
  +	    ChangedFiles = lists:map(fun ({{F, _F}, _AST}) -> F end, Results),
  +	    FilesToRename=[{F1,F2}||{{F1, F2}, _AST}<-Results, F1/=F2],
  +	    ?wrangler_io("The following files are to be changed by this refactoring:\n~p\n",
  +			 [ChangedFiles]),
  +	  {ok, ChangedFiles, FilesToRename};
  +	eclipse ->
   	  Res = lists:map(fun ({{OldFName, NewFName}, AST}) ->
   				  {OldFName, NewFName,
   				   refac_prettypr:print_ast(refac_util:file_format(OldFName), AST)}
  
positive.code: 				      end
  			      end, FilePairs),
  		throw({error, "Wrangler failed to output the refactoring result."});
  	_ -> wrangler_preview_server:add_files({FilePairs, LogMsg})
      end.
  
  
  
negative.code:     case Editor of
        emacs ->
  	  refac_util:write_refactored_files_for_preview([{{FileName, FileName}, AnnAST}], Cmd),
  	  {ok, [FileName], []};
        eclipse ->
  	  Content = refac_prettypr:print_ast(refac_util:file_format(FileName), AnnAST),
  	  {ok, [{FileName, FileName, Content}]}
  