You can undo the last refactoring using the Refactoring | Undo menu entry.
This works for local refactorings as well as for renaming and moving. If a global undo is not possible because subsequent changes have been made to files involved in the last refactoring you will be directed to the Global change history. The global change history allows you to undo a number of global changes (such as File save, deletions, refactorings, etc.).
Local refactorings can be undone using the Edit | Undo menu entry as well.
More information can be found in the Global change history chapter in the Editor section.