Hide Duplicate Toolbars Elements in Eclipse

I don't know how, but my STS has duplicate toolbar items, and I'm not sure how to remove them. This is what my duplicate toolbar looks like.

enter image description here

I want to get rid of them. I tried to hide the toolbar, but that did not help. Does anyone know how to get rid of duplicates?

+7
java eclipse spring-tool-suite ide
source share
3 answers

This is apparently a problem on the main Eclipse platform. While the screenshot shows bright icons thanks to Darkest Dark, it currently doesn't seem to be related to the Darkest Dark plugin, as Howlger pointed out. Instead, it appears that duplicate contribution entries appear in the workbench.xmi file. In our testing (I contribute to Darkest Dark), we can see that these entries occur in standalone Eclipse, although they have not yet been able to find the main reason when the entries are again added to workbench.xmi.

Interestingly, the user posted on an old Eclipse error what looks like a screenshot of the Eclipse Classic showing the same problem today.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=402561

Screenshot with Eclipse Bug

+6
source share

I had the same problem since upgrading to Oxygen. I could not reliably reproduce the problem.

The workaround suggested by @howlger helped and was less intrusive than to blow away the entire work area:

  • Close Eclipse.
  • In the Eclipse workspace directory, delete the .metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi file or simply rename it to return it in case you need to return.
  • Open Eclipse.
  • Rearrange user interface elements as you like.

This is pain, but removes duplicate items from toolbars.

I also found that the perspective setting does not work for duplicated elements, but for non-duplicated ones:

  • Window → Perspective → Perspective Settings ...
  • On the Toolbar tab, deselect the items that clutter up your toolbar.
+5
source share

It looks like you installed the Darkest Dark Theme plugin. Try to remove it.

This closed-source plugin transcodes download times to fix the Java bytecode of the Eclipse platform (for legal reasons, not to publish your changes). Unlike using the public API, patches with a temporary load time must be adapted for each (new) version of Eclipse: an error in the plug-in can cause strange behavior of the Eclipse platform.

See also: Keyboard shortcuts in Eclipse Oxygen stopped working

+3
source share

All Articles