[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: [CDO] How can I get information on new objects in a view

Hi Anders,

You can receive the information about detached objects via CDOSessionInvalidationEvents if CDOSession.Options.isPassiveUpdatesEnabled == true. A CDOView can only deliver CDOViewInvalidationEvents with information about objects that are loaded by this particular view. If you need this information for particular objects under all circumstances you must ensure that these objects are loaded. Holding application pointers to these objects (HashSet?) can do this.

Cheers
/Eike

----
http://thegordian.blogspot.com



Anders Forsell schrieb:
I understand that, but for the detachedObjects it is still useful since I am using only one view.

But, I guess that there is no event that a view can listen to for added objects as of now?

---
Anders

Simon Mc Duff wrote:
Anders Forsell wrote:

Hello,

I am using the getDetachedObjects() from CDOViewInvalidationEvent in my transaction listener to call a dispose() method for all objects that have been detached. This is used to clean out transient non-model things like event listeners.

Is there any way of doing a similar thing for new objects in the view so that I can call an initialize() method?

The group of objects you receive from CDOViewInvalidationEvent is really specific to your view. You will ONLY the list of detachedobject for objects that you have in your view. Others will not be there.


Applying the same result for new objects....you will never receive such things.

Make senses ?



---
Anders