Package org.eclipse.mylyn.tasks.core.data

Examples of org.eclipse.mylyn.tasks.core.data.TaskMapper


    }
  }

  @Override
  public void updateTaskFromTaskData(TaskRepository taskRepository, ITask task, TaskData taskData) {
    TaskMapper mapper = getTaskMapping(taskData);
    mapper.applyTo(task);

    task.setUrl(getTaskUrl(taskRepository.getUrl(), task.getTaskId()));
   
    Configuration configuration = getRepositoryConfiguration(taskRepository);
    Assert.isNotNull(configuration);
View Full Code Here


  }

  @Override
  public boolean hasTaskChanged(TaskRepository repository, ITask task,
      TaskData taskData) {
    return new TaskMapper(taskData).hasChanges(task);
  }
View Full Code Here

  public void updateTaskFromTaskData(TaskRepository taskRepository,
      ITask task, TaskData taskData) {
    if (!taskData.isNew()) {
      task.setUrl(getTaskUrl(taskRepository.getUrl(), taskData.getTaskId()));
    }
    new TaskMapper(taskData).applyTo(task);
  }
View Full Code Here

    @Override
    public void updateTaskFromTaskData(TaskRepository repository, ITask task,
            TaskData taskData) {
        // copy and pasted from other connectors
        TaskMapper mapper;
        try {
            mapper = new GoogleCodeTaskMapper(taskData, clientManager.getClient(repository));
            mapper.applyTo(task);
        } catch (CoreException e) {
            StatusHandler.log(e.getStatus());
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.mylyn.tasks.core.data.TaskMapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.