|
|
Re: EmfModel creation from a Resource object? [message #1852852 is a reply to message #1852850] |
Wed, 08 June 2022 04:27 |
Ed Merks Messages: 32985 Registered: July 2009 |
Senior Member |
|
|
There is EObject.eResource to get an instance's resource, which uses EObject.eContainer to walk upward until reaching the resource, and Resource.getResourceSet to get that Resource's resource set. And of course there is ResourceSet.getResources, Resource.getContents, and EObject.eContents, for going in the other direction (and even ResourceSet.getAllContents, Resource.getAllContents, and EObject.eAllContents for walking the entire tree. So you can always get what you need from the context or get the context from what you already have.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01705 seconds