Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2016-10-29 21:17:32 -0400
committerSteffen Pingel2016-10-29 21:17:32 -0400
commitb9dc82c127485c9f31f552c777f989cf774ed897 (patch)
tree68642bc89715c410170eb82dacc1c528de1def6d
parent6f243ab3e3cb0b54df183e5c98452f8b552efcec (diff)
downloadorg.eclipse.mylyn.tasks-b9dc82c127485c9f31f552c777f989cf774ed897.tar.gz
org.eclipse.mylyn.tasks-b9dc82c127485c9f31f552c777f989cf774ed897.tar.xz
org.eclipse.mylyn.tasks-b9dc82c127485c9f31f552c777f989cf774ed897.zip
352377: allow contributions to the Copy Details sub menu
Change-Id: Iae3da25383f6575f2a68bf8fc354ff3782bab00c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=352377
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
index ca55186ad..296cb8518 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/actions/RepositoryElementActionGroup.java
@@ -47,6 +47,8 @@ import org.eclipse.mylyn.tasks.core.IRepositoryQuery;
import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.mylyn.tasks.core.ITaskContainer;
import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.menus.IMenuService;
import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
/**
@@ -229,6 +231,9 @@ public class RepositoryElementActionGroup {
copyDetailsSubMenu.add(copyUrlAction);
copyDetailsSubMenu.add(copyKeySummaryAction);
copyDetailsSubMenu.add(copyKeySummaryURLAction);
+ copyDetailsSubMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
+ IMenuService menuService = PlatformUI.getWorkbench().getService(IMenuService.class);
+ menuService.populateContributionManager(copyDetailsSubMenu, "menu:" + CopyTaskDetailsAction.ID); //$NON-NLS-1$
manager.appendToGroup(ID_SEPARATOR_EDIT, copyDetailsSubMenu);
}
if (isInTaskList() && !selection.isEmpty()) {

Back to the top