Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Modeling (top-level project) » Reference Containment Question
Reference Containment Question [message #582573] Thu, 16 November 2006 23:22
Ole  is currently offline Ole
Messages: 6
Registered: July 2010
Junior Member
Hi,

I'm experimenting with non containment references and demand loading of
resources using the Purchase Order model from the emf book.

If I set containment to true on the PO items EReference and add an item to
the reference that is actually owned by a different reasource, I get no
exceptions.

However, if I set containment to true on the items reference and repeat
the same test, I get an

org.eclipse.emf.ecore.resource.Resource$IOWrappedException.. .the object is
not contained in resource.

I was expecting this to be the other way around. So that when containment
is true, I should get an exception, because the item added to the items
list is contained in a different resource...

Am I missing something?

Thanks,
- Ole
Previous Topic:[n] Please Suggest Eclipse Plug-in develpement news group?
Next Topic:Reference Containment Question
Goto Forum:
  


Current Time: Sun May 19 02:57:53 EDT 2013

Powered by FUDForum. Page generated in 0.01468 seconds