Skip to main content



      Home
Home » Modeling » UML2 » Creating EMap using MagicDraw
Creating EMap using MagicDraw [message #478711] Thu, 06 August 2009 09:47 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:Problem while trying to export graphic from diagram
Next Topic:Reload UML2 for genmodel programmatically
Goto Forum:
  


Current Time: Mon Nov 10 06:30:43 EST 2025

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

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

Back to the top