How to remove google login button in eclipse

I'm facing a problem. My eclipse has a google signin button that takes up some space that I don't want. Initially, he had the text β€œ Google Login ” with him. I followed some blog posts and, accordingly, showed only the icon (I don’t remember this link on the blog).

But now the icon copies .. it is displayed 12 times. This actually creates childs: P

I looked through all the options presented in the "Customize Perspective" menu, none of them indicated this button. Can someone help me remove this button using google? One possible suspect is that my eclipse crashes when I pause and wake my car.

Picture showing repeated icons

+6
source share
2 answers

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.

+4
source

This is not a perspective, but a view. You can hover over this panel using the buttons and press Alt + Shift + F1 to check where this view came from. Then you can disable / remove the tab (Help β†’ Installation Information) or check where this function came from.

If this comes from the IDE, you can open the bug . If this is due to a third-party plugin, contact the developers of this plugin.

There is an eclipse error regarding duplicate toolbar buttons in Luna that has recently closed. Perhaps this also solves your problem.

Edit: taken from this bug :

  • The main reason is that in Luna 4.4M5 WorkbenchWindowControlContribution.createControl is called twice, the first time with a null value for WorkbenchWindowControlContribution.getWorkbenchWindow () while it is still being created. This is due to what was reported here https://bugs.eclipse.org/bugs/show_bug.cgi?id=427452
  • The second reason is because my createControl (Composite parent) method called PlatformUI.getWorkbench (). getActiveWorkbenchWindow () instead of WorkbenchWindowControlContribution.getWorkbenchWindow (). This led to an attempt to create a new Workbench window, which recursively calls createControl () again. It was already here https://bugs.eclipse.org/bugs/show_bug.cgi?id=366708
+1
source

Source: https://habr.com/ru/post/973253/


All Articles