[CDO 4.1] : Adapter of ResourceSet of remote user not notified on Resource add/remove [message #881962] |
Tue, 05 June 2012 10:50  |
Eclipse User |
|
|
|
Hi,
I have a use case where on a first client I remove a CDOResource from
its ResourceSet and commit, and on a second client receiving the remote
changes, I have a Adapter on the ResourceSet to see if a Resource has
been added or removed to refresh somes Eclipse views, but this Adapter
is not notified while on the ResourceSet of the first client it is
notified by EMF. Can I consider that as a bug?
I have attached a JUnit test to reproduce the use case.
Best Regards.
|
|
|
|
Re: [CDO 4.1] : Adapter of ResourceSet of remote user not notified on Resource add/remove [message #882280 is a reply to message #882015] |
Wed, 06 June 2012 03:18   |
Eclipse User |
|
|
|
On 05/06/2012 18:20, Eike Stepper wrote:
> Am 05.06.2012 16:50, schrieb Esteban Dugueperoux:
>> Hi,
>>
>> I have a use case where on a first client I remove a CDOResource from
>> its ResourceSet and commit, and on a second client receiving the
>> remote changes, I have a Adapter on the ResourceSet to see if a
>> Resource has been added or removed to refresh somes Eclipse views, but
>> this Adapter is not notified while on the ResourceSet of the first
>> client it is notified by EMF. Can I consider that as a bug?
> No, that's the expected behaviour. A ResourceSet is, in contrast to
> Resources and EObjects, a transient concept. Hence changes to them are
> neither persisted nor are respective notifications ditributed.
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Hi,
Ok I understand, in my use case, the remote user is well notified when
deleting the Resource.
Thanks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04577 seconds