summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorEike Stepper2012-08-06 03:41:42 (EDT)
committer Matthias Sohn2012-08-06 03:41:42 (EDT)
commit681f82a5a8be635b2dcb6ed765c39573686ca960 (patch)
treed926691e1629fec6dd92d83372602e070cdeeb5f
parent3e8140d09d2bd7061d5e07129f6631ee09fd7e5e (diff)
downloadegit-681f82a5a8be635b2dcb6ed765c39573686ca960.zip
egit-681f82a5a8be635b2dcb6ed765c39573686ca960.tar.gz
egit-681f82a5a8be635b2dcb6ed765c39573686ca960.tar.bz2
Provide history selection to workbench page.refs/changes/13/7013/3
Enable users to contribute actions (objectContributions) to the commits shown in the GitHistoryPage. Bug: 386151 Change-Id: Id77eca75ce20eba883ce932fbc797b9c258c3041
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
index 371411a..919605d 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/GitHistoryPage.java
@@ -780,6 +780,7 @@ public class GitHistoryPage extends HistoryPage implements RefsChangedListener,
attachCommitSelectionChanged();
initActions();
+ getSite().setSelectionProvider(graph.getTableView());
getSite().registerContextMenu(POPUP_ID, popupMgr, graph.getTableView());
// due to the issues described in bug 322751, it makes no
// sense to set a selection provider for the site here