Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore UML Profile, adding Ecore annotation
Ecore UML Profile, adding Ecore annotation [message #490330] Thu, 08 October 2009 11:34 Go to next message
Karel Smutny is currently offline Karel SmutnyFriend
Messages: 7
Registered: July 2009
Junior Member
Hello,

I am experiencing problems with addind Ecore annotations to elements in
UML model (with Ecore profile used).

I have a class with an attribute with stereotype EAttribute and defined
annotation tag. For UML I use MagicDraw 16.5.

When I create GenModel from UML model, the annotations are not present
in the converted Ecore model unless they are defined for EPackage.

I don't see any annotations defined for e.g. EDataType or EAttribute.

Do I miss something or the UML to Ecore conversion ignores annotations
on all elements except Packages (with EPackage stereotype).

Thanks in advance for any clue.
Karel
Re: Ecore UML Profile, adding Ecore annotation [message #490332 is a reply to message #490330] Thu, 08 October 2009 11:55 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
Registered: July 2009
Senior Member
Karel,

I'm not sure if this is a Magic Draw issue or a UML importer issue, but
it's certainly not a basic EMF issue I can answer. I've added the UMl2
newsgroup to the "to" list of the reply because the UML2 project
provides the support for UML <-> Ecore importers and exporters, so they
might be able to answer.


Karel Smutny wrote:
> Hello,
>
> I am experiencing problems with addind Ecore annotations to elements
> in UML model (with Ecore profile used).
>
> I have a class with an attribute with stereotype EAttribute and
> defined annotation tag. For UML I use MagicDraw 16.5.
>
> When I create GenModel from UML model, the annotations are not present
> in the converted Ecore model unless they are defined for EPackage.
>
> I don't see any annotations defined for e.g. EDataType or EAttribute.
>
> Do I miss something or the UML to Ecore conversion ignores annotations
> on all elements except Packages (with EPackage stereotype).
>
> Thanks in advance for any clue.
> Karel


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore UML Profile, adding Ecore annotation [message #490341 is a reply to message #490332] Thu, 08 October 2009 12:01 Go to previous messageGo to next message
Karel Smutny is currently offline Karel SmutnyFriend
Messages: 7
Registered: July 2009
Junior Member
Thank you.

Just a note: It is definitely not a MagicDraw issue, the
EAttribute.annotation tag is present in the exported EMF UML2 model. It
is just not transfered/converted to Ecore annotations during UML2Ecore
conversion.

K.

Ed Merks wrote:
> Karel,
>
> I'm not sure if this is a Magic Draw issue or a UML importer issue, but
> it's certainly not a basic EMF issue I can answer. I've added the UMl2
> newsgroup to the "to" list of the reply because the UML2 project
> provides the support for UML <-> Ecore importers and exporters, so they
> might be able to answer.
>
>
> Karel Smutny wrote:
>> Hello,
>>
>> I am experiencing problems with addind Ecore annotations to elements
>> in UML model (with Ecore profile used).
>>
>> I have a class with an attribute with stereotype EAttribute and
>> defined annotation tag. For UML I use MagicDraw 16.5.
>>
>> When I create GenModel from UML model, the annotations are not present
>> in the converted Ecore model unless they are defined for EPackage.
>>
>> I don't see any annotations defined for e.g. EDataType or EAttribute.
>>
>> Do I miss something or the UML to Ecore conversion ignores annotations
>> on all elements except Packages (with EPackage stereotype).
>>
>> Thanks in advance for any clue.
>> Karel
Re: Ecore UML Profile, adding Ecore annotation [message #492576 is a reply to message #490341] Tue, 20 October 2009 19:13 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1620
Registered: July 2009
Senior Member
Karel,

Assuming you've set the 'Ecore Tagged Values' option to 'Process' in the
model wizard, this should just work. If you continue to have issues,
please provide a representative model and we'll look into it.

Kenn

Karel Smutny wrote:
> Thank you.
>
> Just a note: It is definitely not a MagicDraw issue, the
> EAttribute.annotation tag is present in the exported EMF UML2 model. It
> is just not transfered/converted to Ecore annotations during UML2Ecore
> conversion.
>
> K.
>
> Ed Merks wrote:
>> Karel,
>>
>> I'm not sure if this is a Magic Draw issue or a UML importer issue,
>> but it's certainly not a basic EMF issue I can answer. I've added
>> the UMl2 newsgroup to the "to" list of the reply because the UML2
>> project provides the support for UML <-> Ecore importers and
>> exporters, so they might be able to answer.
>>
>>
>> Karel Smutny wrote:
>>> Hello,
>>>
>>> I am experiencing problems with addind Ecore annotations to elements
>>> in UML model (with Ecore profile used).
>>>
>>> I have a class with an attribute with stereotype EAttribute and
>>> defined annotation tag. For UML I use MagicDraw 16.5.
>>>
>>> When I create GenModel from UML model, the annotations are not
>>> present in the converted Ecore model unless they are defined for
>>> EPackage.
>>>
>>> I don't see any annotations defined for e.g. EDataType or EAttribute.
>>>
>>> Do I miss something or the UML to Ecore conversion ignores
>>> annotations on all elements except Packages (with EPackage stereotype).
>>>
>>> Thanks in advance for any clue.
>>> Karel
Previous Topic:Multistatus reporting
Next Topic:can't load a wsdl from url using org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
Goto Forum:
  


Current Time: Sun Sep 22 06:35:12 GMT 2024

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

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

Back to the top