Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用java.io.File. 但是每次我编辑它时,Eclipse 都与该资源不同步!所以在我的代码编辑它之后,如果用户试图在 UI 中对其进行操作,Eclipse 会说资源不同步!我知道在 UI 中刷新文件会起作用,但每次这样做都会很烦人!
java.io.File
有没有办法以 eclipse 与文件同步的方式打开资源?
refreshLocal API 对我没用!!
尝试Preferences > General > Workspace并选中该Refresh using native hooks or polling复选框。
Preferences > General > Workspace
Refresh using native hooks or polling
Filesync插件对我来说很好用。它是可配置的。无需手动刷新。