You can use the Window > Reset Perspective... menu command to reset the perspective to its default state, which might eliminate that toolbar and buttons. If that fails, I would create a new workspace and import the projects into it using File > Import > Existing Projects into Workspace.
If you want to try to salvage your existing workspace, it's possible to do so my manually editing Eclipse's internal file that stores your Workbench layout, but it's a bit tricky. Here are the steps I've followed to eliminate a similar repeated toolbar item:
- Exit Eclipse.
- Find the Workbench layout file, it's path is
<workbench>\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi
. Make a backup of this file before you touch it - this is essential because it's easy to corrupt the file if you change the wrong things.
- Open the file in your favorite XML-aware editor - most packages of Eclipse include the XML editor that works just fine1, but be aware that if you use Eclipse to edit the file you can't have Eclipse open on the workspace that contains the
workbench.xmi
you want to edit.
- Find the section of
<trimBars>
nodes in the XML; from there you have to determine which <trimBars>
node you need to edit. In your case it looks like a vertical one, probably with a side="Right"
attribute.
- Under the correct
<trimBars>
node you'll find multiple <chlidren>
nodes, each with an elementId
attribute that should help you identify it; you're looking for <children>
nodes that are identified as something related to the Google plugin.
- Delete the
<children>
nodes that seem related to the unwanted toolbar buttons. In your case, it appears that there is an entire toolbar that you might want to eliminate, so you might want to delete the entire containing <trimBars>
node.
- Save the file and start Eclipse on that workspace.
1Some packages of Eclipse include EMF tools that will open it in a special XMI editor that does not provide a view of the source, only a structural tree view. Depending on how you like to work with XML, this might be easier than editing raw XML.