Multiple “Open a Terminal” icons keep appearing in Eclipse toolbar

こ雲淡風輕ζ 提交于 2019-12-23 10:39:38

问题


Lately I noticed that every now and then a new "Open a Terminal" icon appears on my Eclipse toolbar.

Right now it looks like this, almost taking all the width of the window:

Did anyone encounter such a strange behavior ?

FYI This is Eclipse Mars.1 (4.5.1) and I have a few plugins installed: SVN (with SVNKit and JavaHL), Serena Dimensions 12 interface, Activiti BPMN 2.0 Designer and Eclipse Color Theme

Thank you.


回答1:


I found out how to hide specific toolbars (I don't know why a right click on the toolbars doesn't work like office apps...) :

  • Go to Window->Perspective->Customize Perspective...

  • On the "Tool Bar Visibility" tab uncheck "Terminal" option to hide it




回答2:


So, this recently happened to me as well. Here is what i did to remove the extra terminal icons:

  1. Make sure that eclipse is not opened since it will save its workbench state when shutting down

  2. Open up your eclipse workbench.xmi file, it should be located in the .metadata/.plugins/org.eclipse.e4.workbench folder inside your workspace

  3. Search for XML objects that has "Open a Terminal" as a tooltip, you should find several. Each element will look like:

    <children xsi:type="menu:HandledToolItem" xmi:id="_rF1Qc7hJEeilL5I7ZRh67w" elementId="org.eclipse.tm.terminal.view.ui.commands.launchToolbar" iconURI="platform:/plugin/org.eclipse.tm.terminal.view.ui/icons/eview16/console_view.png" tooltip="Open a Terminal" command="_rF3HG7hJEeilL5I7ZRh67w">
      <persistedState key="IIdentifier" value="org.eclipse.tm.terminal.view.ui/org.eclipse.tm.terminal.view.ui.commands.launchToolbar"/>
    </children>
    
  4. Remove all objects but one and save the file, you should now only have one terminal icon the next time you open eclipse.




回答3:


Going to "Window -> Perspective -> Customize Prospective" and then unchecking "Terminal" in the "Tool Bar Visibility" tab did not do anything for me. The "Open a Terminal" icons did not go away. I also tried restarting Eclipse, and those terminal icons did not go away.

However, the following worked for me:

  • Go to "Window -> Preferences"
  • Expand "General", and click on "Capabilities"
  • Under "Capabilities", uncheck "Terminal" and click "Apply" and "OK"
  • Close Eclipse and start it up again (restart Eclipse)
  • When Eclipse comes back, you should see the "Open a Terminal" icons gone (hopefully - it worked in my case)
  • Go back to "Windows -> Preferences", "General -> Capabilities"
  • Check "Terminal", and click "Apply" and "OK".

Hope this helps.



来源:https://stackoverflow.com/questions/35337503/multiple-open-a-terminal-icons-keep-appearing-in-eclipse-toolbar

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!