|Re: Package.getESuperPackage() returns null [message #1117273 is a reply to message #1117256]
||Thu, 26 September 2013 09:06
| Ed Merks
Registered: July 2009
On 26/09/2013 10:48 AM, Maarten Bezemer wrote:
> 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.
> 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
Powered by FUDForum
. Page generated in 0.02088 seconds