Rob has recently added the missing bits of the implementation.
Starting with Mylyn 3.2 the oldAttributes parameter will now contain
the list of changed attributes:

269407: [api] implement TaskDataModel.getChangedOldAttributes()
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269407

Please note that your connector should still be able to handle the
case where oldAttributes is null gracefully, e.g. for standalone use
or if you need to support older Mylyn versions.

Steffen


On Tue, Dec 23, 2008 at 1:59 PM, Robert Munteanu
<[email protected]> wrote:
> Hi all,
>
> For the connector I'm contributing in
> (http://mylyn-mantis.wiki.sourceforge.net/) task relations can only be
> updated by calling separate delete_relation and add_relation SOAP
> methods.
>
> I'd like to avoid invoking those methods unless the values have
> changed, and would like to be able to either receive a 'delta' of
> those values or be able to compute the 'delta' myself.
>
> AbstractTaskDataHandler.postTaskData does have a Set<TaskAttribute>
> oldAttributes parameter which seems to be what I need, but it its
> value is always null.
>
> Am I missing something? Alternatively, is there any other manner of
> finding out whether the value of an attribute has changes?
>
> Thank you,
>
> Robert
> _______________________________________________
> mylyn-integrators mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
>



-- 
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
_______________________________________________
mylyn-integrators mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators

Reply via email to