aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Stocker2011-08-03 12:19:13 (EDT)
committerRobin Stocker2011-08-03 12:19:13 (EDT)
commit1ac0a293b2e54eebd4d7173ddc29d580e370a7c5 (patch)
treebcfb129dff7b0187340fc5464e3b60249fec1740
parent33b55b069cc940531b136476ef670f37869a1d84 (diff)
downloadegit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.zip
egit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.tar.gz
egit-1ac0a293b2e54eebd4d7173ddc29d580e370a7c5.tar.bz2
[historyView] Reveal selected commit on filter changerefs/changes/55/3955/1
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.java6
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 ded2be5..6c7fd66 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);
}
}
}