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

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();
EObject eo =;

// 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: Tue Jun 22 14:11:18 GMT 2021

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

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

Back to the top