Ok, I found that method, but..
I noticed that in this method TaskDataHandler.postTaskData() is supposed to be invoked, but I made some test and I saw that postTaskData in my implementation of AbstractTaskDataHandler is not being invoked att all even though
it is overriden correctly. Any idea why is this happenning?
The thing is that when I update the task in the server and synchronize in eclipse, the new data shows on the screen, but doSave() is invoked and it writes the old data back to the server during the synchronization. When I synchronize
again, The doSave() is invoked twice, the first time writing the new data back to the server and the second time writing the old data back to the server. I am thinking that the reason is that the new data is not commited to the local taskData (which is what
you already explained bellow, but I didn't get it until now) specially that when invoking doSave() in AbstractTaskEditorPage the isDirty() allways returns false indicating that the taskData is not changed and thus does not execute the rest of the code in this
method. So how do I make the connector realize that the taskData need to be updated?
I really appreciate any help. This is my last week at work and I REALLY need to get this working before I leave
Thanks in advance
Avin
________________________________________
From: mylyn-integrators-bounces@xxxxxxxxxxx [mylyn-integrators-bounces@xxxxxxxxxxx] On Behalf Of Avin Ismail [avin@xxxxxx]
Sent: Thursday, August 21, 2008 2:35 PM
To: Mylyn Integrators list
Subject: RE: [mylyn-integrators] "Task has incoming changes" and "clear outgoing"?
When you save changes to an attribute locally this attribute will not get
updated from the server until it is submitted or outgoing changes are
cleared. Take a look at SubmitTaskJob.run(): After submitting a task to the
server taskDataManager.putSubmittedTaskData(task, updatedTaskData) is invoked
which updates the local copy of task data with the latest state from the
server.
Where is SubmitTaskJob.run() decleared? It is not in AbstractEditorPage, unless you meant SubmitTaskJobListener.run()!!
Best regards,
Avin
_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
|