[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

Guys,

Comments below...



Stefan Winkler schrieb:
Simon,
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.
That depends, doesn't it?
No ;-)

If an object O is in my view, I would see 'new' objects if references
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?
In 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.

Cheers
/Eike

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