org.eclipse.mylar.internal.tasks.ui.planner
Class TaskReportGenerator

java.lang.Object
  extended by org.eclipse.mylar.internal.tasks.ui.planner.TaskReportGenerator
All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress

public class TaskReportGenerator
extends java.lang.Object
implements org.eclipse.jface.operation.IRunnableWithProgress

Author:
Ken Sueda, Mik Kersten, Rob Elves (scope report to specific categories and queries)

Field Summary
private  java.util.List<ITaskCollector> collectors
           
private  java.util.Set<ITaskListElement> filterCategories
           
private  boolean finished
           
private static java.lang.String LABEL_JOB
           
private  TaskList tasklist
           
private  java.util.List<ITask> tasks
           
 
Constructor Summary
TaskReportGenerator(TaskList tlist)
           
TaskReportGenerator(TaskList tlist, java.util.Set<ITaskListElement> filterCategories)
           
 
Method Summary
 void addCollector(ITaskCollector collector)
           
 void collectTasks()
           
 java.util.List<ITask> getAllCollectedTasks()
           
 boolean isFinished()
           
 void run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LABEL_JOB

private static final java.lang.String LABEL_JOB
See Also:
Constant Field Values

finished

private boolean finished

tasklist

private TaskList tasklist

collectors

private java.util.List<ITaskCollector> collectors

tasks

private java.util.List<ITask> tasks

filterCategories

private java.util.Set<ITaskListElement> filterCategories
Constructor Detail

TaskReportGenerator

public TaskReportGenerator(TaskList tlist)

TaskReportGenerator

public TaskReportGenerator(TaskList tlist,
                           java.util.Set<ITaskListElement> filterCategories)
Method Detail

addCollector

public void addCollector(ITaskCollector collector)

collectTasks

public void collectTasks()

run

public void run(org.eclipse.core.runtime.IProgressMonitor monitor)
         throws java.lang.reflect.InvocationTargetException,
                java.lang.InterruptedException
Specified by:
run in interface org.eclipse.jface.operation.IRunnableWithProgress
Throws:
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException

getAllCollectedTasks

public java.util.List<ITask> getAllCollectedTasks()

isFinished

public boolean isFinished()