Hi,

Saving is handled by the framework and you shouldn't need to hook into it.
Maybe your problem is caused by overriding doSubmit or doSave in
TaskEditorPage, without calling super? Or perhaps an exception is
preventing the save from happening. Normally, when submitting a task,
doSubmit calls doSave which calls TaskDataModel.save, which writes the zip
file.

HTH,
Sam


-- 
Sam Davis
Software Engineer, Tasktop Dev
Committer, Eclipse Mylyn
http://tasktop.com


On Fri, Dec 6, 2013 at 5:47 AM, Hallvard Ystad
<[email protected]>wrote:

> Hi list
>
> Trying to construct a custom TaskEditorPage, I get a CoreException because
> my tasks aren't stored locally in the «offline» folder. When I create a
> task and save it, the zip-file is in the local-local folder, but when I
> submit the task to my tracker, there is no zip file in the
> .mylyn/tasks/tracker/offline/ folder. In the data folder, there is one
> folder for each issue, but no zip files.
>
> I believe this must be due to a faulty connector. The TaskDataModel class
> has a save method - but where do I hook into it? The integrator reference
> page on eclipse.org mentions four things to do to add offline support to
> a connector, but as far as I can tell, all four of them are implemented in
> my connector, and none of them deals with saving locally.
>
> Observing code in the Bugzilla and Trac connectors didn't prove useful. Or
> (probably) I missed something. So since this connector doesn't save tasks
> locally (although the folders are created), where should I look? Where
> should it have happened?
>
> Thanks,
> HY
> _______________________________________________
> 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