Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkersten2005-11-03 13:24:35 -0500
committermkersten2005-11-03 13:24:35 -0500
commit9dd7b23bf04f2cbfc632e816b4034345fbe5ab4d (patch)
treeab6503e4e3c97d5da0a41428ae1d3ec61292a2a6
parentf27860f0bf7134dab26b4179b2c2e399ce92fc9d (diff)
downloadorg.eclipse.mylyn.tasks-9dd7b23bf04f2cbfc632e816b4034345fbe5ab4d.tar.gz
org.eclipse.mylyn.tasks-9dd7b23bf04f2cbfc632e816b4034345fbe5ab4d.tar.xz
org.eclipse.mylyn.tasks-9dd7b23bf04f2cbfc632e816b4034345fbe5ab4d.zip
Fixed Bugzilla Bug 114853: group Add actions into a submenu on the popup menu
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/CreateTaskAction.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/CreateTaskAction.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/CreateTaskAction.java
index e5503e249..2f63e4ece 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/CreateTaskAction.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/ui/actions/CreateTaskAction.java
@@ -68,7 +68,12 @@ public class CreateTaskAction extends Action {
} else {
MylarTasklistPlugin.getTaskListManager().addRootTask(newTask);
}
- }
+ } else if (view.getDrilledIntoCategory() != null) {
+ newTask.setCategory(view.getDrilledIntoCategory());
+ ((TaskCategory)view.getDrilledIntoCategory()).addTask(newTask);
+ } else {
+ MylarTasklistPlugin.getTaskListManager().addRootTask(newTask);
+ }
view.getViewer().refresh();
}
}

Back to the top