Re: [mdr-users] JMI mapping problem on package subtyping

Martin Matula <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.user
Message-ID <[email protected]>
Frédérick Seyler wrote:

> Hi,
> I have hand-written this XMI file. I would like to replace this by a 
> java file doing the same thing
> How can I access the elemens of a super type package using  the 
> subtype one?
> Interface is the supertype package and contains "UgatzeComponent" class
> Origin is a subtype package of Interface
> How can  I access UgatzeComponent from Origin?
> Origin.lookupElement("UgatzeComponent")   fails

I guess you need to call lookupElementExtended() which looks into the 
supertypes (unlike lookupElement()).
Regards,
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.