The IDE lets you undo changes with its local history. While you're working on your code, the IDE automatically keeps track of the changes you make to your file; it lets you roll back to an earlier version of a file that you saved but didn't commit to source control.
For more information about the IDE's local history feature, see this link in the Workbench User Guide:
.