Warm tip: This article is reproduced from stackoverflow.com, please click
eclipse ide java spring-tool-suite

Hiding Duplicate Toolbars Items in Eclipse

发布于 2020-04-08 09:44:20

I don't know how, but my STS has got duplicate toolbars items and I am not sure how to remove them. Here is how my duplicated toolbar looks like.

enter image description here

I want to get rid of these. I tried to hide the toolbar but that didn't help. Does anybody have any idea how to get rid of the duplicate ones?

Questioner
divinedragon
Viewed
64
MorganGalpin 2017-09-13 03:04

I've been having the same problem since upgrading to Oxygen. I haven't been able to reliably reproduce the issue.

The workaround suggested by @howlger has helped and is less intrusive than blowing away the entire workspace:

  1. Close Eclipse.
  2. In the Eclipse workspace directory, delete the .metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi file or just rename it so you can bring it back in case you need to revert.
  3. Open Eclipse.
  4. Rearrange the UI elements to your liking.

This is a pain, but does remove the duplicate elements from toolbars.

I also found that customizing the perspective doesn't work for duplicated items, but does for non-duplicated:

  1. Window -> Perspective -> Customize Perspective...
  2. On the "Tool Bar Visibility" tab, deselect the items that are cluttering up your toolbar.