eclipse 添加新文件时在eclipse中刷新项目

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16913514/
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-19 20:39:57  来源:igfitidea点击:

Refresh project in eclipse when a new file is added

javajavascripteclipse

提问by Tanna

I found 2 links in the forum but neither really solved my problem. I am creating files in the front end and they get reflected only when i manually refresh the project folder in eclipse... Does any other alternative exist to refresh eclipse automatically?

我在论坛中找到了 2 个链接,但都没有真正解决我的问题。我正在前端创建文件,只有当我在 eclipse 中手动刷新项目文件夹时才会反映它们......是否存在其他替代方法来自动刷新 eclipse?

Thanks in advance

提前致谢

回答by Samra

Use : Window->Preferences->Workspaceand check Refresh using native hooks and pollingcheckbox.. I have verified it. Seems like it polls after few seconds..

使用:Window->Preferences->Workspace使用本机钩子和轮询复选框检查刷新..我已经验证过了。似乎它在几秒钟后轮询..

回答by Piyush Aghera

I am using Window > Preference > general > worskspace setting .

我正在使用 Window > Preference > general > workspace setting 。

回答by AlexR

You should refresh eclipse project programmatically. Take a look on the following discussion: how to refresh eclipse workspace programatically?

您应该以编程方式刷新 eclipse 项目。看看下面的讨论:如何以编程方式刷新 eclipse 工作区?

Once you learn how to implement plug-in that refreshes the project make it to watch your file system an run refresh once your files have been generated.

一旦你学会了如何实现刷新项目的插件,一旦你的文件生成,它就会观察你的文件系统并运行刷新。