Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaxsun McCarthy Huggan2016-08-17 21:26:25 -0400
committerJaxsun McCarthy Huggan2016-08-18 13:34:44 -0400
commitf53818a10879eb46747383a6a533845c6e037cf2 (patch)
treebd8ef55f7a5a82f59ea2f26b81f0c578f7e6e881 /org.eclipse.mylyn.tasks.core/src/org
parente78fe8eb59066c70f100188e416bb96dd329f761 (diff)
downloadorg.eclipse.mylyn.tasks-f53818a10879eb46747383a6a533845c6e037cf2.tar.gz
org.eclipse.mylyn.tasks-f53818a10879eb46747383a6a533845c6e037cf2.tar.xz
org.eclipse.mylyn.tasks-f53818a10879eb46747383a6a533845c6e037cf2.zip
158461: users can configure when to schedule new tasks
Change-Id: I892587aafd47c1802914bfcb94f7367a863e034c Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=158461
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
index 038209bec..ce1215e9a 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/TaskActivityManager.java
@@ -867,10 +867,9 @@ public class TaskActivityManager implements ITaskActivityManager2 {
return false;
}
- public void scheduleNewTask(AbstractTask newTask) {
+ public void scheduleNewTask(AbstractTask newTask, DateRange scheduleFor) {
newTask.setCreationDate(new Date());
- // TODO: set based on preference? see bug#158461
- setScheduledFor(newTask, TaskActivityUtil.getCurrentWeek());
+ setScheduledFor(newTask, scheduleFor);
}
public boolean isDueThisWeek(ITask task) {

Back to the top