Two days ago, I deleted five Java files in Eclipse IDE and now I need them. I tried to restore them from the local history. I restored only two of them. When I right click on the other files and then click restore from local history, I get the error message No additional members found in local history
. How can I restore those three files?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
You can use the information in this Java Tips page.
I deleted my
src
folder, and used the following steps to get it back:Answer: You can't.. sorry :\
If restoring from local history does not work, then you are out of luck i'm afraid.. the point of deleting files, is to DELETE them.. not ever needing them back.
my suggestion is be more careful when deleting and use a Source Control Management software like SVN or Git, so you can version your files to prevent things like this from happening again.
It is very simple. You can use these steps:
Right click on the project of which you want to recover.
Select restore from local history.
Select the file/files to recover plus version too.
Steps to recover the deleted files:
Please see the attached image:
.
You can use the information in this Java Tips page.
I deleted my src folder, and used the following steps to get it back:
--> Select Project
--> Right Click
--> Select Restore from local history in the context menu
--> Select your files,
--> Click OK.
--> Then go to your git and do "git checkout filename"
--> This should fully restore the file and its content
I hope this helps
If you still have the binary form (.class), that is you only deleted the source code, then you can decompile then back to source.
Search on Google for some decompilers, for example Cavaj.