org.eclipse.mylar.internal.tasks.ui
Class AddExistingTaskJob

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.core.internal.jobs.InternalJob
          extended by org.eclipse.core.runtime.jobs.Job
              extended by org.eclipse.mylar.internal.tasks.ui.AddExistingTaskJob
All Implemented Interfaces:
java.lang.Comparable, org.eclipse.core.runtime.IAdaptable

public class AddExistingTaskJob
extends org.eclipse.core.runtime.jobs.Job

Retrieves an existing repository task and adds it to the tasklist

Author:
Willian Mitsuda

Field Summary
private  TaskRepository repository
          Task repository whose task will be added
private  AbstractTaskContainer taskContainer
          Optional; informs the task container the task initialy belongs to; if null, it will be added to the current selected task's category in task list
private  java.lang.String taskId
          Identifies a existing task on the repository
 
Fields inherited from class org.eclipse.core.runtime.jobs.Job
ASYNC_FINISH, BUILD, DECORATE, INTERACTIVE, LONG, NONE, RUNNING, SHORT, SLEEPING, WAITING
 
Fields inherited from class org.eclipse.core.internal.jobs.InternalJob
manager
 
Constructor Summary
AddExistingTaskJob(TaskRepository repository, java.lang.String taskId)
           
AddExistingTaskJob(TaskRepository repository, java.lang.String taskId, AbstractTaskContainer taskContainer)
           
 
Method Summary
protected  org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.core.runtime.jobs.Job
addJobChangeListener, belongsTo, cancel, done, getJobManager, getName, getPriority, getProperty, getResult, getRule, getState, getThread, isBlocking, isSystem, isUser, join, removeJobChangeListener, schedule, schedule, setName, setPriority, setProgressGroup, setProperty, setRule, setSystem, setThread, setUser, shouldRun, shouldSchedule, sleep, wakeUp, wakeUp
 
Methods inherited from class org.eclipse.core.internal.jobs.InternalJob
compareTo, toString
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

repository

private TaskRepository repository
Task repository whose task will be added


taskId

private java.lang.String taskId
Identifies a existing task on the repository


taskContainer

private AbstractTaskContainer taskContainer
Optional; informs the task container the task initialy belongs to; if null, it will be added to the current selected task's category in task list

Constructor Detail

AddExistingTaskJob

public AddExistingTaskJob(TaskRepository repository,
                          java.lang.String taskId)

AddExistingTaskJob

public AddExistingTaskJob(TaskRepository repository,
                          java.lang.String taskId,
                          AbstractTaskContainer taskContainer)
Method Detail

run

protected org.eclipse.core.runtime.IStatus run(org.eclipse.core.runtime.IProgressMonitor monitor)
Specified by:
run in class org.eclipse.core.runtime.jobs.Job