I was working on a project in Eclipse that has several classes and one Interface. I decided to export it as a jar so that I can run it on another machine.
This went just fine. However, when I went back to Eclipse, it suddenly removed all of my file one by one as soon as I tried to edit one of them. Now there is only one file left and it’s not even my main. I had everything in the default workspace directory and now only that one file remains.
Can I undo it?
Answer
Something similar just happened to me a while ago, Eclipse has the option to recover files no matter if you have a version control or not…
make right click in the project and make a “Restore from local history“
a new window with all accidentally removed files will appear and you can undo the mess 🙂