[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-integrators] Problems with implementing offline support
|
After digging through the code a bit I think it is the intended behavior
that getTaskData is called even though the repository is in offline mode.
So my next question is: What IS the correct behavior of the connector in
such a case? Should it simply throw a CoreException?
regards,
Dennis
-------- Original Message --------
Subject: Problems with implementing offline support
Date: Fri, 21 Mar 2008 15:17:59 +0100
From: Dennis Rietmann <dennis.rietmann@xxxxxxxxx>
To: Mylyn Integrators list <mylyn-integrators@xxxxxxxxxxx>
Hi everyone,
I have a problem with implementing offline editing in my connector. If I
mark the repository as "disconnected" and then open a task from the task
list the background synchronization will be launched and getTaskData
gets called on my TaskDataHandler (via the
RepositorySynchronizationManager->SynchronizeTaskJob.synchronizeTask).
getTaskData will try to get the task from the repository which of course
fails when working offline.
I had a look at the Trac connector's TaskDataHandler and it seems to do
the same, there is no special check whether the repository is in
disconnected mode or not. I think I missed something, because
getTaskData shouldn't be called at all by the framework, but I couldn't
figure out what. Does anyone have a suggestion? I already read the
section in the Integrators wiki, this seems to be fine.
thanks for any help,
Dennis