StagingView: improve reload job
commitaccef75a2d85571af33978f7eef78d557cde2703
authorJens Baumgart <jens.baumgart@sap.com>
Fri, 2 Sep 2011 19:50:00 +0000 (2 12:50 -0700)
committerKevin Sawicki <kevin@github.com>
Fri, 2 Sep 2011 19:50:00 +0000 (2 12:50 -0700)
tree2a4004b67fcd6e93fc18b414e47cf5c5d6fc3885
parent5faa177e53792aceb191458a459c8290af6b3fab
StagingView: improve reload job

StagingView now cancels an already running reload job before scheduling
a new reload job. This avoids unnecessary expensive calculation of
IndexDiffs.
Furthermore the selected repository is not changed if the reload job was
canceled. This avoids showing incomplete staging information for the
newly selected repository.

Bug: 355278
Change-Id: Ie04d49cc2249392a9f15e3aefaef1c54c07dce63
Signed-off-by: Jens Baumgart <jens.baumgart@sap.com>
Signed-off-by: Kevin Sawicki <kevin@github.com>
org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java