Don't steal the focus in the find widget of the history view
commit0f9a531c250a732c923e9a28c5a2a09f3bdbfa40
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 14 Nov 2016 22:18:53 +0000 (14 23:18 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Sun, 20 Nov 2016 10:32:24 +0000 (20 11:32 +0100)
tree3130f26fcc89462a08b60f56d7b7f6413b719789
parent47213bad0d4e033734e797d090386d574300a3ac
Don't steal the focus in the find widget of the history view

The find toolbar widget of the history view does some ugly focus
juggling. Make sure to do this only initially, or when the widget is
explicitly shown by the user triggering the findToolbarAction, but not
when the control is re-created in response to other events, such as
switching between history pages.

This focus back-and-forth is a hack, but unfortunately it's the only
way I have found to fix the wrong background of the whole toolbar when
showing the find widget makes the toolbar move from right of the tabs
to below the tabs.

Bug: 507484
Change-Id: I96c2cadeb988612371dceeddc2f8967cc9566e1a
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java