I saw the trac-connector example and saw that getTaskData() returns the data it 
gets from the server, not the task. So I implemented that and it gets the data 
from the server all right.

Now when I click on a task and open it in a taskEditor, getTaskData() is 
invoked and I asume (mostly because I can't see it any other way) that the 
editor gets its data (tex. schedueled for, due date, estimated hours...etc) 
from getTaskData(), but the data shown in the editor are still wrong. The 
TaskData variable has the right data but the task itself has NOTHING. I tried 
to use TaskMapper.applyTo(myTask), but that had no effect what so ever. The 
only way I can see to get the task Object itself to have the right data is to 
set the attributes manually. Which is kind of straitforward, but then I don't 
understand the idea behind the TaskData object if i would be setting the 
ITask/AbstractTask attributes manually anyway?!!!

I feel very comfused right now, can somebody please explain to me what's the 
right thing to do now?

Thanks alot in advance!
Avin


________________________________________
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Avin Ismail [EMAIL 
PROTECTED]
Sent: Thursday, July 24, 2008 1:01 PM
To: [email protected]
Subject: [mylyn-integrators] How to get TaskData?

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

Reply via email to