|
|
|
Re: Package.getESuperPackage() returns null [message #1117273 is a reply to message #1117256] |
Thu, 26 September 2013 09:06 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Maarten,
Comments below.
On 26/09/2013 10:48 AM, Maarten Bezemer wrote:
> Hello,
>
> I have two EMF packages: packageA is extending packageB.
Packages don't have a relation that involves extending. Perhaps you
mean packageA has EClasses that extend the EClasses in packageB, but
that's a statement about the classes not the packages.
> In my ecore editor, I have used 'Load Resource' to load packageB, in
> order to use its elements in packageA.
>
> I would think that I could use packageA.getESuperPackage() in order to
> obtain packageB.
No.
> But instead I get null back.
If packageA don't contain packageB, that's expected.
>
> It is easily fixed by manually overriding the method and returning the
> correct package, but I would like to use the proper way.
That sounds like a bad idea.
>
> So, do I need to configure a certain property in my ecore or genmodel
> files to activate this behavior?
No, your expectations are are little off.
> Or is there something else that I am missing?
Why do you think you need this?
>
> I use EMF 2.9
>
> Thanks,
> Maarten
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Package.getESuperPackage() returns null [message #1117281 is a reply to message #1117273] |
Thu, 26 September 2013 09:17 |
Maarten Bezemer Messages: 117 Registered: February 2012 |
Senior Member |
|
|
Hello Ed,
As I explained to Dimitris, my expectations of ESuperPackage were wrong.
I am looking for the packages that are used by packageA to get the corresponding Epsilon EVL validation rules for these packages. In order to have a (more) complete validation of my model.
Do you know a way to get hold of this information?
Thanks,
Maarten
[Updated on: Thu, 26 September 2013 09:17] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03195 seconds