|Re: Multiple metamodels not supported? [message #31323]
||Thu, 28 June 2007 17:37
Originally posted by: merks.ca.ibm.com|
Probably asking on the OCL newsgroup, which I've added to the "to" list
of the reply, is likely more appropriate. Christian is likely to see
your question more quickly there.
John Smith wrote:
> I have the metamodel inheritance A.ecore -> B.ecore -> C.ecore
> I created an GMF editor for Metamodel A.ecore. Everythink is fine
> except when I use OCL constraints like "self.oclIsKindOf(TypeFromA)"
> where TypeFromA is defined in A.ecore. If I use
> "self.oclIsKindOf(TypeFromB)" where TypeFromB is defined in B.ecore,
> this works! and "self.oclIsKindOf(TypeFromC)" not works again. So the
> middle metamodel works! So this seems randomly what metamodel works
> for OCL constraints. Its remarkable thats the middle metamodel (middle
> in inheritance hierarchy), since A.ecore is the "root" metamodel when
> I generated the GMF xml files.
> However in the generated GMF editor itself I can create model elements
> of classes in all three metamodels without problem. Only when
> referencing to metamodel classes of A.ecore or C.ecore, it not works.
> Can anybody tell where the metamodels are registered to the OCL
> engine? And, second, can anyone tell why full qualified names for the
> metamodels not work, but only names without the top level package name
> of the metamodel (this may be related to the problem)?
Powered by FUDForum
. Page generated in 0.01708 seconds