This happened, two weeks ago, when I was writing llt and adding code coverage. Suddenly, where's my code, where's My code? Because I'm not familiar with eclipse, the code is just like I deleted from the disk. Then rushed to call colleagues, colleagues said if deleted, and the Recycle Bin also rice, then really did not.
So I rushed to find the Recycle Bin, a variety of recovery deleted, the result is still not, but the dramatic thing happened: actually eclipse can automatically recover!
The deletion of Eclipse is a little different from vs. VS will throw the deleted item into the Recycle Bin, then it can go inside (if the update is sometimes flushed out, then it's the way), Eclipse is deleted directly, but the backup is saved in the IDE. Therefore, you do not need to use disk recovery software.
The steps are as follows
Right-click on the parent directory of the deleted. java file, select Restore from the Local history, you can see the deleted files are inside, tick the file you want to recover, then click the Restore button.
We can set this feature: "General, Workspace, Local history".
Just record the bumps on the path to Java in this article haha ~
Eclipse recovers deleted files