| Creating EMap using MagicDraw [message #478711] |
Thu, 06 August 2009 09:47  |
Eclipse User |
|
|
|
Hello Everybody,
I am using MagicDraw tool for creating class diagrams.
Using the Export option in Magicdraw i am exporting my class diagram as
EMF-xmi i.e having an extension of uml.
I am importing this uml in my eclipse and creating an ECore and genmodel
out of this.
So i am using the same class diagram to create an Ecore out of it.
Fore creation of a Map in ECore, i can directly edit ecore for creating
ecore in the steps followed in the below link:
http://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF .3F
But is there any way that in class diagram only , i can set some
properties so that Map is obtained in the generated ecore file.
Thanks in Advance!!
Regards,
Zaks
|
|
|
| Re: Creating EMap using MagicDraw [message #479336 is a reply to message #478711] |
Mon, 10 August 2009 13:22  |
Eclipse User |
|
|
|
Zaks,
This is really a question for the folks that produced the tool you are
using... However, it should be possible to do this by applying the Ecore
profile, applying the EClass stereotype to the class representing the
map type, setting the 'instanceClassName' tag to "java.util.Map$Entry",
and ensuring the class has properties named 'key' and 'value'.
Kenn
Zaks wrote:
> Hello Everybody,
>
> I am using MagicDraw tool for creating class diagrams.
> Using the Export option in Magicdraw i am exporting my class diagram as
> EMF-xmi i.e having an extension of uml.
>
> I am importing this uml in my eclipse and creating an ECore and genmodel
> out of this.
>
> So i am using the same class diagram to create an Ecore out of it.
>
> Fore creation of a Map in ECore, i can directly edit ecore for creating
> ecore in the steps followed in the below link:
>
> http://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF .3F
>
> But is there any way that in class diagram only , i can set some
> properties so that Map is obtained in the generated ecore file.
>
> Thanks in Advance!!
>
> Regards,
> Zaks
>
>
|
|
|
| Re: Creating EMap using MagicDraw [message #627863 is a reply to message #478711] |
Mon, 10 August 2009 13:22  |
Eclipse User |
|
|
|
Zaks,
This is really a question for the folks that produced the tool you are
using... However, it should be possible to do this by applying the Ecore
profile, applying the EClass stereotype to the class representing the
map type, setting the 'instanceClassName' tag to "java.util.Map$Entry",
and ensuring the class has properties named 'key' and 'value'.
Kenn
Zaks wrote:
> Hello Everybody,
>
> I am using MagicDraw tool for creating class diagrams.
> Using the Export option in Magicdraw i am exporting my class diagram as
> EMF-xmi i.e having an extension of uml.
>
> I am importing this uml in my eclipse and creating an ECore and genmodel
> out of this.
>
> So i am using the same class diagram to create an Ecore out of it.
>
> Fore creation of a Map in ECore, i can directly edit ecore for creating
> ecore in the steps followed in the below link:
>
> http://wiki.eclipse.org/EMF/FAQ#How_do_I_create_a_Map_in_EMF .3F
>
> But is there any way that in class diagram only , i can set some
> properties so that Map is obtained in the generated ecore file.
>
> Thanks in Advance!!
>
> Regards,
> Zaks
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03686 seconds