|
Re: [CDO] dispose event for CDOResource [message #1652157 is a reply to message #1651837] |
Thu, 05 March 2015 18:38 |
|
Am 05.03.2015 um 15:43 schrieb Alexander Klatt:
> Hello,
>
> let's say we have got a CDOResourceFolder whose content changes quite rapidly(maybe up to each 10ms).
> I am only interested in getting a notification if a certain CDOResource was deleted.
>
> I could do this by adding a content adapter to the the resource folder, but this seems kind of wrong to me. Is there
> any better way to do this?
There are several ways with CDO to listen for remote model changes. If you're interested in the concrete chnage deltas
you need to either set the sessions's passive update mode to CHANGES (in which case your client will receive all commit
infos with full delta information) or adding an EMF adapter to a specific object (which requires to set the view's
change subscription policy). A more efficient approach for your scenarion could be to use none of that, but instead add
a CDOObjectHandler to the view and handle the state changes of the respective object.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03583 seconds