| [news.eclipse.tools.emf] Re: [CDO] How can I get information on new objects in a view |
Guys,
Comments below...
Simon,
That depends, doesn't it?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.
No ;-)
If an object O is in my view, I would see 'new' objects if referencesIn these cases the event will carry *change* information *if* the changed object is loaded by the view. You can never receive an "added" information for an object because you're not able to load that object into your view before it is added by another paty.
are added to a feature of O. E.g., if a resource is part of my view, an
addition to resource.getContents() would cause an event, wouldn't it?
Cheers /Eike
---- http://thegordian.blogspot.com