|
Re: Removing target objects from cross-referenced resource [message #653293 is a reply to message #653253] |
Wed, 09 February 2011 09:17 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
AJ,
Comments below.
AJ wrote:
> The delete method finds all references to the object within the
> resource set and clean those up. I thought it should be removing
> references to recursively cross-document contained children as well,
> but it seems to do only what the Javadoc says; so do I need to
> explicitly call EcoreUtil.delete() for the children too?
For children contained in another resource, yes.
>
> First call:
> EcoreUtil.delete(containerElement, true);
> Then call:
> EcoreUtil.delete(containedTarget, true);
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04997 seconds