Noaman Akram
Noaman Akram

Reputation: 3830

my java code disappears from java file eclipse

I am working on android project. since i was editing specific java file my laptop shutdown unexpectedly. when i switch on my laptop and open eclipse the file in which i was working show empty. there is no code :( what should i do now ?? please help :(

for example i write this code but now its empty after computer unexpectedly shutdown

    public class ResourcesManager{
private BaseScene splashScene;
private BaseScene menuScene;
private BaseScene gameScene;
private BaseScene loadingScene;}

this is the image of my file

Upvotes: 0

Views: 835

Answers (2)

Keerthivasan
Keerthivasan

Reputation: 12890

Right click on the file, choose Restore from Local History. That is the only option as far as i know. Give it a try.

As @greg-449 said - Replace With > Local History.. is the perfect option

Upvotes: 1

greg-449
greg-449

Reputation: 111217

Right click on the file in Package/Project Explorer and choose Replace With > Local History..

You can also try Right click on the Project and select Restore from Local History but this only restores files which have been deleted.

Upvotes: 1

Related Questions