Reputation: 63
I was writing code last night and when I open the code this morning I find this... Is there any way to recover the code from last night?
Upvotes: 0
Views: 1711
Reputation: 438
Looks like you are using Eclipse, lets try with Eclipse's local history features. Try search for local history. Right click MelodynGen.java -> Compare With -> Local history. Eclipse should open History view and you can click on previous versions of your file. You can compare two versions by selecting two versions in history view, right click -> Compare with each other. When you have found the right version you want to recover, right click that version -> Get Contents. Eclipse asks if you really want to overwrite current file to that version. Other way is to open desired history version, select all, copy, open MelodyGen.java -> paste.
Upvotes: 1
Reputation: 146
Maybe you still have it in your local history. Right click in your class -> team -> show local history.
Upvotes: 2
Reputation: 1674
If you still have the .jar or .class file try this:
http://www.javadecompilers.com/
Maybe you've renamed the file accidentally ?
Upvotes: 1