summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorKilian Matt2011-01-17 11:12:42 (EST)
committer Chris Aniszczyk2011-01-17 11:49:23 (EST)
commit5d1a926b9b857b37af6fb00672086349833d1a93 (patch)
treeb01216d01e7573473d377b164759179359555f1c
parent5d787ee18b29f8bd4449512601e87166f059d37e (diff)
downloadegit-5d1a926b9b857b37af6fb00672086349833d1a93.zip
egit-5d1a926b9b857b37af6fb00672086349833d1a93.tar.gz
egit-5d1a926b9b857b37af6fb00672086349833d1a93.tar.bz2
Enabled extension to the history view popup menurefs/changes/56/2256/2
Change-Id: Ibf769c7f7c5dd108cf25b9496ca1cd9df7a0e37f Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/history/CommitGraphTable.java4
1 files changed, 4 insertions, 0 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 b23dd9a..9af4143 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
@@ -217,6 +217,10 @@ class CommitGraphTable {
});
Control c = getControl();
+ menuMgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
+ // TODO extract this as a constant in the future
+ site.registerContextMenu("org.eclipse.egit.history.popup", menuMgr,table); //$NON-NLS-1$
+
c.setMenu(menuMgr.createContextMenu(c));
c.addMenuDetectListener(menuListener = new MenuListener(menuMgr,
getTableView(), site, copy));