如何清理Eclipse“运行配置” [英] How can I clean up Eclipse "run configurations"

查看:153
本文介绍了如何清理Eclipse“运行配置”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse的Window> Prefs> Java> Installed JREs> Default VM Arguments中设置了我的java运行时选项。由于此设置对我所有的 main()入口点来说已经足够了,因此我无需自定义运行配置。它看起来很好的灵活性,但我可能永远不会需要它。我担心我必须在运行配置中重复我的虚拟机参数,所以我开始复制我的虚拟机参数,但在实验之后,似乎我不必这样做。现在我会有相反的担心,我有一些意想不到的定制。



为了消除第二个担心,有没有办法消除运行下拉菜单中可见的杂乱? JAR导出对话框中可见的启动配置怎么样?运行配置与启动配置相同吗?我如何消除多次启动配置?



我在Ubuntu上的Eclipse Indigo上。



编辑手动删除所有运行配置后,继续执行导出,按钮是灰色的,所以我无法继续。当我选择启动配置下拉列表时,我只能从一个不相关的项目中选择一个选项。然后,我为当前项目的主要入口点创建了一个运行配置。我希望随着我继续使用Eclipse,杂乱无章。

解决方案

答案来自@Francisco Puga



实验证据表明,删除启动似乎使运行配置消失,因此似乎它们可能是同义词。


I set my java runtime options in Eclipse's Window > Prefs > Java > Installed JREs > Default VM Arguments. Since this setting is sufficient for all my main() entry points, I do not bother with customizing the "run configurations". It looks like nice flexibility but I probably will never need it. I was worried that I would have to repeat my VM arguments in the run configurations and so I started to copy my VM arguments but after an experiment it seems that I do not have to. Now I will have the opposite worry that I have some unintended customizations.

To eliminate the second worry, is there a way to eliminate the clutter visible in the Run drop down menu? What about the "Launch configurations" visible in the JAR export dialog? Is a run configuration the same thing as a launch configuration? How do I eliminate the multiple launch configurations?

I am on Eclipse Indigo on Ubuntu.

Edit After I manually delete all the run configurations, and proceed to do an export, buttons are greyed-out so I can't proceed. When I select the launch configuration drop-down, I end up with only one choice, from an unrelated project. I then created a run configuration for the real main entry point for the current project. I expect the clutter will return as I continue to use Eclipse.

解决方案

The answer comes from @Francisco Puga

Experimental evidence shows that deleting "launches" seems to make run configurations disappear so it would seem that they might be synonymous.

这篇关于如何清理Eclipse“运行配置”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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