> @Ismail: How can you retrieve the task with the specified taskid?

I don't have the code in front of me right now, but I think it was something 
like:

TasksUiPlugin.getTaskList().getTask(taskId)

I will check it out for you as soon as I get to work on Monday.

However, as I mentioned in the e-mail I posted after the one bellow, I checked 
the trac-connector, and there getTaskData() reads the data of the specified 
task from the server aka not from the taskList. Since I am planing on writing 
all the changes I make to the task back to the server right away, getting the 
taskData from the server instead of the taskList works for me. My problem now 
is how to get this data showing up om the task editor, 'cause now I am really 
lost there!!!


Good luck
Avin

________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Beyhan Veliev [EMAIL 
PROTECTED]
Sent: Saturday, July 26, 2008 3:25 PM
To: Mylyn Integrators list
Subject: Re: [mylyn-integrators] How to get TaskData?

Hello,

I am writing a new connector for Mylyn 3.0 and Eclipse 3.4 and I have
the same challenge in getTaskData(repository, taskid, iprogressMonitor).
I need to find the existing task or its taskdata for the passed taskid
and I should use only the APIs of "org.eclipse.mylyn.tasks.core".  I
haven't found a way to do this. Is it possible?

Thank you in advance
Beyhan

Avin Ismail wrote:
> Hello,
>
> How can I extract the TaskData of a specific task? I am trying to
> implement getTaskData(repository, taskId, iprogressMonitor) that has to
> return a TaskData. Now I can retrieve the task with the specified taskId,
> but how can I get the TaskData of that task?
>
> FYI:
> in PerformQuery(), I followed the example on
> http://wiki.eclipse.org/Mylyn/Porting_Guide/3.0 and created the task as
> follows:
>
> TaskData data = createTaskData(repository, id);
> TaskMapper mapper = new TaskMapper(data, true);
> mapper.setTaskUrl(taskPrefix + id);
> mapper.setSummary(description);
> mapper.setCreationDate(creationDate);
> mapper.setDueDate(dueDate);
> resultCollector.accept(data);
>
> Thank you in advance
> Avin
>
> _______________________________________________
> mylyn-integrators mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
>
>

_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators

Reply via email to