简体   繁体   English

如何在 Eclipse 中完全禁用 Oomph?

[英]How to completely disable Oomph in Eclipse?

For a long time it was annoying in Eclipse to switch workspaces and also to lose (not permanently of course) carefully crafted settings like colors, styles, etc. And it was again annoying to recreate these settings from scratch (thus creating a new workspace was as rare as possible).很长一段时间以来,在 Eclipse 中切换工作区以及丢失(当然不是永久)精心设计的设置(如颜色、样式等)都很烦人。从头开始重新创建这些设置也很烦人(因此创建一个新的工作区是尽可能少见)。 And I was extremely happy to see someone decided to do something about it, so we get Oomph.我非常高兴看到有人决定为此做点什么,所以我们得到了 Oomph。 But longer I use it, more I think that the solution is actually worse than the original problem.但是我使用它的时间越长,我就越认为解决方案实际上比原始问题更糟糕。 First of all, it just doesn't work as one would expect.首先,它并不像人们期望的那样工作。 So I said to myself: "OK, give it a time, be patient, maybe you just don't know how to properly use it" (and probably I still can't).所以我对自己说:“好吧,给它一点时间,耐心点,也许你只是不知道如何正确使用它”(可能我仍然不能)。 But after few years I end up with dozens of different versions of Eclipse installed around, because of this Oomph thing.但是几年后,由于 Oomph 的原因,我最终安装了数十个不同版本的 Eclipse。 And now (Oxygen.3a) it is tied to Eclipse and apparently I can't remove it.现在 (Oxygen.3a) 它与 Eclipse 相关联,显然我无法将其删除。

But why would I do that?但我为什么要这样做? Because I'm loosing control over the settings!因为我失去了对设置的控制! It changes syntax color at its whim, ignores indeterminably part of these settings (Java Editor Syntax Color) and other settings too.它会随心所欲地更改语法颜色,也无法确定地忽略这些设置的一部分(Java 编辑器语法颜色)和其他设置。 Oh, I tried to disable recording or startup task, but to no avail.哦,我尝试禁用录制或启动任务,但无济于事。 Can't I just have these colors as picked?我不能只选择这些颜色吗? Actually I promise, I would not complain about setting these things from scratch in each workspace again, but please, let someone tell me, how to get rid of Oomph functionality.实际上我保证,我不会再抱怨在每个工作区中从头开始设置这些东西,但是请让有人告诉我,如何摆脱 Oomph 功能。 PLEASE.请。

I guess there should be separate settings for Eclipse "style" and these should shared among Eclipse versions and instances (like via ~/.config/eclipse/ or what) and "environment" settings that are strictly involved in building/running the code that are tight to workspaces.我想 Eclipse“样式”应该有单独的设置,这些应该在 Eclipse 版本和实例之间共享(比如通过~/.config/eclipse/或什么)和严格参与构建/运行代码的“环境”设置对工作空间很紧。 I believe it would be way simpler to maintain the stuff.我相信维护这些东西会更简单。 But at this point I just would like to know, how to disable Oomph to return to the old, well known hell.但此时我只想知道,如何禁用 Oomph 以返回旧的、众所周知的地狱。 Is that even possible?这甚至可能吗?

Everytime when I change pref in eclipse to ignore unnecessaryElse每次当我在 Eclipse 中更改偏好以忽略unnecessaryElse

org.eclipse.jdt.core.compiler.problem.unnecessaryElse = ignore

When I close eclipse, and restart it again.当我关闭 eclipse 时,再次重新启动它。 The above pref will be changed automatically to the following上面的pref会自动改成下面的

org.eclipse.jdt.core.compiler.problem.unnecessaryElse = warning

Finally, I found that oomph alway Executing startup tasks to restore or change my pref settings.最后,我发现oomph总是Executing startup tasks恢复或更改我的偏好设置。 This is unacceptable.这是无法接受的。

At last, I add -Doomph.setup.skip=true to eclipse/eclipse.ini, and now oomph nolonger restore or change my pref settings.最后,我将-Doomph.setup.skip=true添加到 eclipse/eclipse.ini,现在-Doomph.setup.skip=true恢复或更改我的偏好设置。

-Doomph.setup.skip=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM