简体   繁体   English

撤消eclipse软件包资源管理器中的更改

[英]undo changes in eclipse package explorer

I have unknowingly clicked on some files in package explorer in eclipse and they had been moved or deleted. 我在不知不觉中单击了Eclipse软件包浏览器中的某些文件,它们已被移动或删除。 I wish to undo the changes occurred in package explorer and I am not able to fin that option from edit->undo or by pressing ctrl + z 我希望撤消软件包浏览器中发生的更改,并且无法从edit-> undo或按ctrl + z查找该选项。

Is there any way out to undo changes in tree structure or deletions from package explorer in eclipse? 有什么办法可以撤消Eclipse中的包浏览器中树结构的更改或删除? Please help. 请帮忙。

With focus in the Package Explorer Ctrl + Z should still be what you can use. 重点放在Package Explorer中,您仍然可以使用Ctrl + Z There should also be a back arrow on the top bar (unless you removed it) which should, on hover, tell you what will be undone. 顶部栏上还应该有一个向后箭头(除非您将其删除),将其悬停时告诉您将要撤消的内容。 Alternatively you might be able to just right click on your project and Restore from Local History . 或者,您也许可以右键单击您的项目,然后Restore from Local History

Also as @M.Dan says, you should definitely use version control to help mitigate issues like this. 就像@ M.Dan所说的那样,您绝对应该使用版本控制来帮助缓解此类问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM