it happens with me that, I am working on a project with Eclipse. And Suddenly power gone. And after some times while power come back and i open the project in eclipse, i found m
Get the previous file back from the cache with help of eclipse's local history. Right click on the damaged file -->Replace with-->Previous from Local History.
Open the file in Eclipse editor -> right click -> Team -> Show Local History“ View the result in ‘History View’ and chose the last best state of your file.
Yeah ,and also you can try for some method restore,Right Click in editor->Local History->Replace with.. THis will help to get back the previous changes u made...
try the eclipse's local history.. right click the file -->replace with-->previous from Local History.