|
|
Re: [acceleo] Find the root element [message #1798724 is a reply to message #1798692] |
Fri, 23 November 2018 10:07 |
Shimon Zadok Messages: 24 Registered: May 2016 |
Junior Member |
|
|
Thanks for the help and in need of new direction.
EcoreUtil.getRootContainer(Package) gives: "org.eclipse.uml2.uml.internal.impl.UMLPackageImpl@75cd8043 (name: uml) (nsURI: http://www.eclipse.org/uml2/5.0.0/UML, nsPrefix: uml)".
How could I use 'EcoreUtil.getRootContainer(Package)'?
I think I need to give structure example of my model as it seems I have multiple root elements and I need the "executed" model's root element.
My model structure is as follows:
common
framework
app1 app2 etc...
'common' contains some model and profiles (which are root elements to my objects)
In 'framework' I have a package 'Lib' with PackageMerge of those objects needed.
In 'app1' I have a new instance of 'Lib' with PackageMerge of those objects needed too...
Then my root element I search for is not in 'common' model, but in the 'app1' model.
[Updated on: Fri, 23 November 2018 10:27] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06548 seconds