try{
IUndoManager manager = RefactoringCore.getUndoManager();
if(commandLine.hasOption(Options.PEEK_OPTION)){
return manager.peekUndoName();
}
manager.performUndo(null, null);
return rcl.getChangedFiles();
}finally{
workspace.removeResourceChangeListener(rcl);
}
}