Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[mylyn-integrators] A question about Mylyn 3.0 connectors, synchronization, and TaskData.setPartial

In moving my connector to Mylyn 3.0, I observe some strange behavior.

I open Eclipse with a new workspace, create a query, and immediately
open a task editor for one of the tasks returned.  The task editor shows
a task with only a few fields in it.

The MyRepoConnector.performQuery returns TaskData instances, but the
query results contain only a few fields from the repository.  I wait for
the normal synchronization event to populate the task fully.  That makes
the query fast and reserves the expensive synchronization for a
background task.

So, what it looks like I'm seeing in the task editor is a task that has
been created by performQuery but which has not yet been synchronized by
Mylyn.  I thought that if the task had not been fully-populated, Mylyn
would first synchronize the task before opening the editor.  

Looking at the Trac connector, I see that it uses
taskData.setPartial(true).  If my connector does not fully populate
tasks during performQuery, should I be calling taskData.setPartial(true)
to indicate to Mylyn that it must finish synchronizing the task before
showing it to the user?  I don't see any documentation on this method or
in the integrator reference, so I wanted to ask about it before using
it.

--
Tom Bryan <tombry@xxxxxxxxx>
Cisco Systems
RTP, NC, USA


Back to the top