有没有办法让Eclipse在后台运行时不刷新工作区? [英] Is there a way to ge Eclipse to not refresh workspace when its in background?

查看:52
本文介绍了有没有办法让Eclipse在后台运行时不刷新工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎Eclipse检测到文件更改并刷新工作区,即使它不在前台(顶部窗口)也是如此.有没有办法将其关闭,以便等到它再次在前台进行工作空间刷新,本质上是将更改排队,直到我再次激活它?

It seems that Eclipse detects file changes and does a workspace refresh even when its not in the foreground (top window). Is there a way to turn that off so it waits until its in the foreground again to do the workspace refresh, essentially queuing up the changes until I activate it again?

基本上,当我在其他工具中进行更改时,我不希望它占用CPU来尝试重建工作区.我经常看到的主要情况是从命令行执行git rebase时.在重新运行基准时,Eclipse会根据正在进行的更改不断重建工作区.

Basically I don't want it taking up CPU trying to rebuild the workspace while I am making changes in other tools. The main case where I see this a lot is when I am doing a git rebase from the command line. While the rebase is running Eclipse keeps rebuilding the workspace based on the ongoing changes.

注意,我确实希望它在再次激活时刷新.本质上,我希望刷新能够像IntelliJ一样工作.

Note I do want it to refresh when I activate again. Essentially I want the refresh to work like IntelliJ.

作为参考,这是有关Eclipse工作区刷新工作方式的一系列很好的答案- Eclipse是否可以自动刷新资源?

For reference, here is a good set of answers on how Eclipse workspace refresh works - Can Eclipse refresh resources automatically?

请注意,刷新工作区甚至可能在Eclipse中引起问题,这时它将引发错误对话框并将其置于前台.

Note refreshing the workspace can even cause problems in Eclipse at which point it raises an error dialog and brings itself to the foreground.

推荐答案

自动刷新和自动构建不是一回事.没有一种方法可以完全满足您的需求,但是最接近的事情是自动构建而不自动刷新.然后,手动触发刷新将导致对这些更改进行自动构建.

Refreshing automatically and Building automatically are not the same thing. There isn't a way to do exactly what you want, but Building automatically while not Refreshing automatically is probably the closest thing. Manually triggering a Refresh will then cause automatic building to occur on those changes.

这篇关于有没有办法让Eclipse在后台运行时不刷新工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆