diff options
| author | Robin Stocker | 2011-08-03 16:19:13 +0000 |
|---|---|---|
| committer | Robin Stocker | 2011-08-03 16:19:13 +0000 |
| commit | 1ac0a293b2e54eebd4d7173ddc29d580e370a7c5 (patch) | |
| tree | bcfb129dff7b0187340fc5464e3b60249fec1740 | |
| parent | 33b55b069cc940531b136476ef670f37869a1d84 (diff) | |
| download | egit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.tar.gz egit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.tar.xz egit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.zip | |
[historyView] Reveal selected commit on filter change
When looking at the commit history of a resource, a common use case is
to select a commit and then wanting to see how this commits fits into
the history of the whole repository. With this change, this is now
easier because the selected commit is automatically revealed when
changing the filter.
Bug: 324736
Change-Id: I3ee99773af88cf073315c3f7bf048b0fe2dd694b
Signed-off-by: Robin Stocker <robin@nibor.org>
| -rw-r--r-- | org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java index ded2be5aaf..6c7fd66503 100644 --- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java +++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java @@ -345,13 +345,11 @@ class CommitGraphTable { void selectCommit(final RevCommit c) { if (c instanceof PlotCommit) { - table.setSelection(new StructuredSelection(c)); - table.reveal(c); + table.setSelection(new StructuredSelection(c), true); } else if (commitsMap != null) { PlotCommit swtCommit = commitsMap.get(c.getId().name()); if (swtCommit != null) { - table.setSelection(new StructuredSelection(swtCommit)); - table.reveal(swtCommit); + table.setSelection(new StructuredSelection(swtCommit), true); } } } |
