|
Re: import an uml model into ecore file [message #1695030 is a reply to message #1694960] |
Mon, 11 May 2015 13:26 |
|
Hi,
Indeed, the image that you attach shows an association that owns both
of its ends. Because Ecore does not have an explicit model of
associations (EReferences may indicate their opposites), you need the
classes at one or both ends of the association to own the corresponding
property.
The tool that you show in the screenshot is not Papyrus, so I don't
know how to help with that. But in Papyrus, the Properties view makes
it easy to change the ownership of an association end. Select the
association and you will find a pick-list for each end that lets you
choose the Association or the Classifier as the owner (of course, an
association is a classifier, but whatever).
HTH,
Christian
On 2015-05-11 13:05:26 +0000, Selma Bns said:
> I created an uml model with papyrus and tried to import it into an emf
> generated model, but the ecore file generated does not have the
> associations :cry:
> i think there is something missing with the associations in the model
> explorer like a property that i should add to the classes.
> I attached a screenshot of an uml exemple with the model explorer.
> <image>
|
|
|
Re: import an uml model into ecore file [message #1695031 is a reply to message #1695030] |
Mon, 11 May 2015 13:28 |
|
Hmm, sorry, of course that's Papyrus. I just didn't recognize the
Windows UI ...
Christian
On 2015-05-11 13:26:55 +0000, Christian W. Damus said:
> Hi,
>
> Indeed, the image that you attach shows an association that owns both
> of its ends. Because Ecore does not have an explicit model of
> associations (EReferences may indicate their opposites), you need the
> classes at one or both ends of the association to own the corresponding
> property.
>
> The tool that you show in the screenshot is not Papyrus, so I don't
> know how to help with that. But in Papyrus, the Properties view makes
> it easy to change the ownership of an association end. Select the
> association and you will find a pick-list for each end that lets you
> choose the Association or the Classifier as the owner (of course, an
> association is a classifier, but whatever).
>
> HTH,
>
> Christian
>
> On 2015-05-11 13:05:26 +0000, Selma Bns said:
>
>> I created an uml model with papyrus and tried to import it into an emf
>> generated model, but the ecore file generated does not have the
>> associations :cry:
>> i think there is something missing with the associations in the model
>> explorer like a property that i should add to the classes.
>> I attached a screenshot of an uml exemple with the model explorer.
>> <image>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03604 seconds