Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » Re: Multiple metamodels not supported?
Re: Multiple metamodels not supported? [message #31323] Thu, 28 June 2007 17:37
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

John,

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:
> Hi,
>
> 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)?
>
> Thanks!
Previous Topic:Transformate OclText2OclModel
Next Topic:Re: OCL plugin
Goto Forum:
  


Current Time: Tue Apr 23 16:56:01 GMT 2024

Powered by FUDForum. Page generated in 0.02967 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top