[CDO] Notification#getOldValue always null? [message #769644] |
Thu, 22 December 2011 08:07  |
Eclipse User |
|
|
|
Hi All,
I'm observing that when I add an Adapter to an object and then somewhere
else change the change the value of a reference from one object to
another, that the notification that comes to my adapter always has
getOldValue() as null. Identifying the newValue and the notifier works fine.
I am observing the changed object as retrieved through a CDOView with:
view.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL);
I am setting the reference in a CDOTransaction in the same VM.
The adapters view has already loaded the object being adapted as well as
the old and new reference objects.
Is this expected? Perhaps this is something I need to configure? I need
the old value in order to perform some fine-grained updates on a JFace
Viewer.
Thanks,
Dan
|
|
|
|
|
|
Re: [CDO] Notification#getOldValue always null? [message #774142 is a reply to message #772257] |
Tue, 03 January 2012 05:55  |
Eclipse User |
|
|
|
Hi Eike,
Happy New Year, just to confirm I raised
https://bugs.eclipse.org/bugs/show_bug.cgi?id=367738 for this
Thanks,
Dan
On 29/12/2011 11:05, Eike Stepper wrote:
> Hi Dan,
>
> Can you please submit a bugzilla?
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
>
> Am 22.12.2011 14:07, schrieb Dan Pollitt:
>> Hi All,
>>
>> I'm observing that when I add an Adapter to an object and then
>> somewhere else change the change the value of a reference from one
>> object to another, that the notification that comes to my adapter
>> always has getOldValue() as null. Identifying the newValue and the
>> notifier works fine.
>>
>> I am observing the changed object as retrieved through a CDOView with:
>>
>> view.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL);
>>
>> I am setting the reference in a CDOTransaction in the same VM.
>> The adapters view has already loaded the object being adapted as well
>> as the old and new reference objects.
>>
>> Is this expected? Perhaps this is something I need to configure? I
>> need the old value in order to perform some fine-grained updates on a
>> JFace Viewer.
>>
>> Thanks,
>> Dan
|
|
|
Powered by
FUDForum. Page generated in 0.04072 seconds