[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Creating EMap using MagicDraw

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