Use post SelectionListener to trigger display of commit message and files
commit464db096f037eacc97c750e88c6c99d4f3b5a56e
authorShawn O. Pearce <spearce@spearce.org>
Tue, 25 Mar 2008 00:49:05 +0000 (24 20:49 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 7 Apr 2008 05:06:10 +0000 (7 01:06 -0400)
tree17049597956e788d0bb341e697cd627559981732
parent3197d5ace30ba3fd4af61c509fb9ddf28b64fc02
Use post SelectionListener to trigger display of commit message and files

A normal SelectionListener triggers on each keystroke if you use the
down arrow or up arrow to navigate in the history page's commit graph.
This can get really slow as you have to wait for the viewer to redraw
the message and the file list before you can move to the next commit.

By installing our trigger as a post selection listener we wait until
all UI events have gone idle, and then the update happens.  This way
we are reasonably certain the user has settled on a commit that they
want to see before we waste their time getting its details.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.spearce.egit.ui/src/org/spearce/egit/ui/internal/history/CommitGraphTable.java