DESCRIPTION

Add ICommitMessageProvider2 for caret positioning in commit messages

The caret in the CommitMessageComponent is placed according to the
value of getDesiredCaretPosition() of the first implementation of
ICommitMessageProvider2 that provides caret position. In case there
are multiple implementations available that provide a defined caret
position the second and subsequent positions are ignored.

Commit messages are not trimmed anymore to ensure consistency between
a provided message and the provided caret position.

Includes unit and UI tests.

Bug: 516867
Change-Id: I1b0ffd33ef37196d53077d09774672c2b033835f
Signed-off-by: James Mcgee xxx@xxx.xxx
Signed-off-by: Alayna Houston xxx@xxx.xxx

COMMENTS

author: James Mcgee
date: 2017-06-23 09:26:15.000000000

Uploaded patch set 27.

-------------------------------------
author: Brenden Conley
date: 2017-06-23 09:26:20.000000000

Patch Set 27:

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

-------------------------------------
author: Alayna Houston
date: 2017-06-23 09:29:52.000000000

Patch Set 27: Code-Review-1

(2 comments)

Line:68, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitMessageComponentStateManager.java -> >= . Otherwise the caret position will not be set if this is ever extended with additional fields.

Line:70, org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/dialogs/CommitMessageComponentStateManager.java -> And then a simple else is sufficient here.

-------------------------------------
author: Brenden Conley
date: 2017-06-23 09:51:21.000000000

Patch Set 27: Verified+1

Build Successful 

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

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