You can use the menu command Window > Reset Perspective ... to reset the perspective to the default state, which can exclude this toolbar and buttons. If this fails, I will create a new workspace and import the projects into it using File > Import > Existing projects in the workspace .
If you want to try to save the existing workspace, this can be done by my manual editor of the internal Eclipse file, which stores your Workbench layout, but it's a little complicated. Below are the steps that I followed to eliminate a similar repeating toolbar item:
- Exit Eclipse.
- Locate the Workbench layout file, its path is
<workbench>\.metadata\.plugins\org.eclipse.e4.workbench\workbench.xmi . Make a backup of this file before touching it - this is important because it is easy to corrupt the file if you change the wrong things. - Open the file in your favorite XML-enabled editor. Most Eclipse packages have an XML editor that works fine 1 but keep in mind that if you use Eclipse to edit a file, t open Eclipse in the workspace containing
workbench.xmi that you want to change. - Find the
<trimBars> node section in XML; from there you must determine which <trimBars> node you need to edit. In your case, it looks like a vertical one, possibly with the side="Right" attribute. - In the correct
<trimBars> node, you will find several <chlidren> nodes, each of which has an elementId attribute, which should help you define it; you are looking for <children> nodes that are identified as something related to the Google plugin. - Remove the
<children> nodes that seem to be associated with unwanted toolbar buttons. In your case, it seems that there is a whole toolbar that you can eliminate, so you can delete everything containing the <trimBars> node. - Save the file and run Eclipse in this workspace.
1 Some Eclipse packages have EMF tools that will open it in a special XMI editor that does not provide a source view, but only a structural tree view. Depending on how you want to work with XML, this may be easier than editing raw XML.
E-riz source share