Fix history view showing only commit IDs sometimes
commitd1cea330ce19883ad4f3c89ad25172c9c850687d
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 3 Jul 2017 12:24:47 +0000 (3 14:24 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Mon, 3 Jul 2017 12:31:18 +0000 (3 14:31 +0200)
treec422be061715964b53f58bf12ddd812094303ddb
parent47ce5ae6d4a6b6e092bf87d1de09043de8d4611a
Fix history view showing only commit IDs sometimes

The history view would sometimes not show the full commit data of a
selected commit but only the first line containing the commit ID.

I finally had a simple reproducible situation, and after spending some
hours debugging our commit parsing and message text formatting without
finding any problem, I finally had the idea to check the viewer itself
and gave is a cyan background. And lo and behold: the viewer was not
resized properly.

So the message text was there all along, but was not shown because the
viewer was too small and showed only the first line!

Fix by forcing a layout of the viewers on text changes.

Also recompute the size when the diff viewer becomes empty.

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