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.