How to get back a deleted project in eclipse

自古美人都是妖i 提交于 2020-05-25 18:59:29

问题


Today, by mistake i deleted an entire android project from Eclipse Helios. I searched for it all over the web, i found that we have to open the project navigator and then click on 'Restore from local history'. But it didn't work.I didn't understand what to do. Is there any way how we can get a deleted project back in android. Please give me a step by step way to recover it. My hours of work is in vain. Please, Please help me.


回答1:


Sometimes "Delete" just means "Do not show in Project Expplorer". You can choose the File >> Import >> Existing Projects into Workspace. Then there is a dialog Select Root directory your Eclipse workspace should be already selected...OK

There is a checkbox...Add project to working sets. Set this and choose the project you want to bring back. Hey Presto.

It could happen that the package name is already in use. This causes many errors. The thing to do is to open the package to be discarded and refactor the package, renaming it to something harmless.

Now I'm back in business and Happy to share my success (so far)

By the way the backing up and management of files and workspaces is complex. I'm sure it is correct to a Linux Guru, but it is not intuitive. tread softly. If you do not choose "Copy Projects into Workspace", the files used for the compilation are left in their original places on the disks. I feel this warning needs repeating.




回答2:


If you have deleted the contents on disk and on eclipse there is still a small chance you can recover some of the project files.

If you search the eclipse Workspace metadata there are files stored in the history there. These files are named completely differently though but if you have an idea of the date of when you were working on it you may be able to recover some files for the project.

Directory tree is the same on both windows and linux workspace.metadata.plugins\org.eclipse.core.resources.history




回答3:


Just found an answer to this while trying to recover my own accidentally deleted package.

http://www.nodans.com/index.cfm/2008/1/18/How-to-recover-a-deleted-file-in-Eclipse

In summary (in case the link goes bad) right click on the src package in project explorer and from the context menu, select the 'Restore from Local History...' button. It will bring up a list of file that can be restored.




回答4:


Have you looked in your workspace folder? If it isnt there its hard to restore it. There is programs out there that can restore it, but i dont know a good one. Even if you find a good program, it might not be able to restore it.

I suggest you start making backups of your projects so this wont happen again.




回答5:


go straight into your /workspace now! look for it in your computer directory under the eclipse folder or go to file> import> existing project into workspace> (check: select archive file) and click browse it should still be there. i found mine in there and backed it up. so happy :D




回答6:


Restore it from your backups...




回答7:


if You checked delete from Local Disk then you press CTRL+Z your project is created,

and if you did not checked delete from local work space then you can import it. form file menu> Import >>existing project from work space,and choose your path of project.




回答8:


Please follow the guidelines below:

  1. Go to: >File>Open Projects from File System...
  2. Select your Import Source (look for your work-space).
  3. Select the project you deleted from package explorer.
  4. Click finish.

There you go!




回答9:


If you have deleted the project from eclipse only then it can be restores from above mentioned processes but if you deleted files from eclipse as well as directory then there is one option to restore the project files in eclipse:

  1. Right click on project and then choose "Restore From Local History"
  2. All deleted files will be come with check boxes. Chose the files which you want to restore and then restore.


来源:https://stackoverflow.com/questions/6329506/how-to-get-back-a-deleted-project-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!