Reflog view: serialize asynchronous loading jobs
commit3b30746f0e7fe44443c7f7d00948d7628f0c4103
authorThomas Wolf <thomas.wolf@paranor.ch>
Mon, 10 Jul 2017 13:02:20 +0000 (10 15:02 +0200)
committerThomas Wolf <thomas.wolf@paranor.ch>
Tue, 11 Jul 2017 07:38:17 +0000 (11 09:38 +0200)
tree151d3d27c39a10fd85660ff7a46ff427dad16e50
parent9394ac5b78d43ea5c851d8bbeac26cece834666d
Reflog view: serialize asynchronous loading jobs

Per bug 226343 the DeferredTreeContentManager has some problems.
Avoid most of them by serializing jobs asynchronously loading the
reflog, and once we have the reflog, don't re-load it but return
it directly.

Fix auto-updates of the view by re-setting the input on ref changes.
Just calling refresh() doesn't work anymore if the reflog is loaded
asynchronously.

Bug: 519431
Change-Id: I999616ea79068d5f4d0683e655231494d916cd83
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/reflog/ReflogView.java
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/reflog/ReflogViewContentProvider.java