Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Re: difference between "eContents" and "eAllContents"
Re: difference between "eContents" and "eAllContents" [message #1741966] Sat, 30 July 2016 15:00
Eclipse UserFriend
Hello,

eContents returns an EList of the directly contained EObjects (all "containment" references ).
eAllContents returns a TreeIterator with all contained objects, deeply (all contained objects in contained objects and so on).

You can use eAllContents like this :


TreeIterator<EObject> it = anEObject.eAllContents();
while(it.hasNext())
{
EObject eo = it.next();

// Do something
}
Previous Topic:Is it possible to store generated EMF model directly to CDO?
Next Topic:difference between "eContents" and "eAllContents"
Goto Forum:
  


Current Time: Sun Sep 22 07:30:06 GMT 2024

Powered by FUDForum. Page generated in 0.03317 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top