eclipse 文件夹更新时自动刷新eclipse项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7073348/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:26:22  来源:igfitidea点击:

Auto refresh eclipse project upon folder update

eclipsedirectory

提问by Ravisha

I want to know if there is a way to enable auto refresh of eclipse project whenever there is an update on the folder consisting project files. For instance when i update the files from version control such as SVN,or if i include files from my friend etc. I know we can simply refresh the project or use SVN plug in as such ,but i am simply curious as to folder update notifications. Thanks in advance

我想知道是否有办法在包含项目文件的文件夹上有更新时启用 eclipse 项目的自动刷新。例如,当我从 SVN 等版本控制更新文件时,或者如果我包含来自我朋友的文件等。我知道我们可以简单地刷新项目或使用 SVN 插件,但我只是对文件夹更新通知感到好奇. 提前致谢

回答by Ken Chan

Yes , Eclipse version 3.7 has the new lightweight refresh mechanism to keep the workspace synchronized with the underlying filesystem. You can enable it in Preferences > General > Workspaceand select Refresh on access.

是的,Eclipse 3.7 版具有新的轻量级刷新机制,以保持工作区与底层文件系统同步。您可以启用它Preferences > General > Workspace并选择Refresh on access

enter image description here

在此处输入图片说明

If you use previous version , you can still use the old refresh mechanism by selecting Refresh using native hooks or polling

如果您使用以前的版本,您仍然可以通过选择使用旧的刷新机制 Refresh using native hooks or polling



Reference:

参考:

What's New in eclipse 3.7

eclipse 3.7 中的新功能

回答by Ross

Check "Refresh workspace on startup" in "General->Start up and Shutdown" preferences. That should fix it after application restart.

在“常规->启动和关闭”首选项中选中“启动时刷新工作区”。这应该在应用程序重新启动后修复它。