Fix remembering the last selection in StagingView
commitfff3ed5f6dcb7aa62f22e98bcd509840ced523a2
authorThomas Wolf <thomas.wolf@paranor.ch>
Wed, 11 Jan 2017 11:54:12 +0000 (11 12:54 +0100)
committerThomas Wolf <thomas.wolf@paranor.ch>
Wed, 11 Jan 2017 13:04:23 +0000 (11 14:04 +0100)
treef4cee25ec256a2edb7072b6b9f8dcb8036940990
parent83c4fcf3650985c1c596c206cf4a513b90e4af08
Fix remembering the last selection in StagingView

The staging view would not properly react to selection changes
while it was inactive. The problem was that the PartListener
actually did not track the selection; it only remembered the
current selection of the new active part, but would miss
subsequent selection changes.

Bug: 349763
Change-Id: I13d6219677aaf167fd4e2a9c4b94aaf59a92a022
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java