Evorlor
Evorlor

Reputation: 7568

How to recover a file in Eclipse?

I accidentally deleted a .java in Eclipse, then renamed its package. Is there any way to recover it?

If I undo, it tells me that I cannot undo the renaming of a package.

Upvotes: 2

Views: 352

Answers (2)

Pongpat
Pongpat

Reputation: 13338

Have you try right click on the project > Restore from Local History...?

Upvotes: 6

GingerHead
GingerHead

Reputation: 8240

According to the versioning software you are using (ex. svn, cvs), just revert or update it to the latest version.

Upvotes: 1

Related Questions