Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
359 views
in Technique[技术] by (71.8m points)

java - Hiding Duplicate Toolbars Items in Eclipse

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.pluginsorg.eclipse.e4.workbenchworkbench.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.

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...