diff options
author | mkersten | 2005-12-12 20:32:33 +0000 |
---|---|---|
committer | mkersten | 2005-12-12 20:32:33 +0000 |
commit | 2f13cb95f08bb94025715751695ee60ab2572209 (patch) | |
tree | fceb97f9ad9905c600bae188bcf759d2660df28a | |
parent | e92caefa908a0cd2e7a5e9d6f557f69a80f87543 (diff) | |
download | org.eclipse.mylyn.tasks-2f13cb95f08bb94025715751695ee60ab2572209.tar.gz org.eclipse.mylyn.tasks-2f13cb95f08bb94025715751695ee60ab2572209.tar.xz org.eclipse.mylyn.tasks-2f13cb95f08bb94025715751695ee60ab2572209.zip |
Completed: Bug 120185: make task planner run with progress
https://bugs.eclipse.org/bugs/show_bug.cgi?id=120185
-rw-r--r-- | org.eclipse.mylyn.help.ui/doc/new.html | 7 | ||||
-rw-r--r-- | org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java | 4 |
2 files changed, 5 insertions, 6 deletions
diff --git a/org.eclipse.mylyn.help.ui/doc/new.html b/org.eclipse.mylyn.help.ui/doc/new.html index ebc541909..ebab9b964 100644 --- a/org.eclipse.mylyn.help.ui/doc/new.html +++ b/org.eclipse.mylyn.help.ui/doc/new.html @@ -45,14 +45,13 @@ highlighted </span></p> <p align="right"><b>Task Planner</b></p> </td> <td valign="top" width="70%"> - The Task Planner is still experimental, but the UI is becoming more - usable and it is being used internally. Invoke it via File -> + The Task Planner has been available for a while is still + experimental, but the UI has improved. Invoke it via File -> New -> Other -> Mylar Task Planner, specify the number of days, and you will see a report of your past activity. You can drag tasks from the task list into the plan (e.g. from a Bugzilla query), and set their reminders and estimates. All tasks in the plan - can be automatically added to a category. - <p> + can be automatically added to a category.<p> <img border="0" src="images/faq/taskist-planner.gif" width="603" height="407"></td> </tr> <tr> diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java index c0fab102e..82987d3c6 100644 --- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java +++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasklist/internal/planner/TaskReportGenerator.java @@ -56,13 +56,12 @@ public class TaskReportGenerator implements IRunnableWithProgress { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { List<ITask> roots = tasklist.getRootTasks(); - monitor.beginTask("Mylar Task Planner", 1 + tasklist.getCategories().size()); + monitor.beginTask("Mylar Task Planner", tasklist.getRoots().size() * (1+tasklist.getCategories().size())); // for(int i = 0; i < roots.size(); i++) { ITask task = (ITask) roots.get(i); for (ITaskCollector collector : collectors) { collector.consumeTask(task); } - monitor.worked(1); } for (TaskCategory cat : tasklist.getTaskCategories()) { List<? extends ITaskListElement> sub = cat.getChildren(); @@ -71,6 +70,7 @@ public class TaskReportGenerator implements IRunnableWithProgress { ITask element = (ITask) sub.get(j); for (ITaskCollector collector : collectors) { collector.consumeTask(element); + monitor.worked(1); } } } |