Eclipse – Restore deleted file from local history
This tutorial shows how to restore a deleted file from the local history in Eclipse.
Eclipse keeps the deleted files in its local history and provides a very simple way to retrieve a mistakenly deleted file.
Below are the steps:
- Right-click the project -> Restore from local history
- A new popup is displayed holding the deleted files that are still existing in the Eclipse local history:
- Select the file you want to restore, then click Restore.
- That’s it, the file is restored to the same package where it resided before the deletion.