DESCRIPTION

Interactive rebase view toolbar can incorrectly activate buttons

Currently interactive rebase view plan toolbar can incorrectly handle
changeset table selection changes in case of multiple selected
changesets.
RebaseInteractiveStepActionToolBarProvider#mapActionItemsToSelection
activates corresponding button on the toolbar in case of single
selection and can deactivate all buttons in case on multi selection (if
selected changesets have different rebasing plans). Current
implementation does not handle situation in which another button needs
to be activated. For example, if previously selected changeset had
"reword" plan ("reword" button activated) and new selection is two
changesets with "fixup" plan then expected behaviour is to activate
"fixup" button, but actually "reword" button will remain activated. 

Proposed implementation always activates button corresponding to the
first selected changeset plan and deactivates this button if necessary
(i.e. selected changesets have different plans).

Bug: 441891
Change-Id: Ic6013d2857e8dfc439650692e2ee22031e6f61ec
Signed-off-by: Anahi Horn xxx@xxx.xxx


COMMENTS

author: Anahi Horn
date: 2014-08-16 12:16:00.000000000

Uploaded patch set 3.

-------------------------------------
author: Brenden Conley
date: 2014-08-16 12:16:05.000000000

Patch Set 3:

Build Started https://hudson.eclipse.org/egit/job/egit.gerrit/6226/

-------------------------------------
author: Kaden Henson
date: 2014-08-16 12:29:53.000000000

Patch Set 3:

(1 comment)

One last coding style comment

Line:278, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/rebase/RebaseInteractiveStepActionToolBarProvider.java -> Please remove the braces around the single-line-blocks. See also the Contributor Guide for this https://wiki.eclipse.org/EGit/Contributor_Guide#Coding_standards

-------------------------------------
author: Brenden Conley
date: 2014-08-16 12:37:47.000000000

Patch Set 3: Verified+1

Build Successful 

https://hudson.eclipse.org/egit/job/egit.gerrit/6226/ : SUCCESS

-------------------------------------
