| Extending KDM Model [message #907348] |
Mon, 03 September 2012 16:25  |
Rafael Durelli Messages: 35 Registered: September 2012 |
Member |
|
|
Hello guys I'd like to know if someone cold help me. My problem is the following: I need to extending the KDM, I mean to create a profile. I know that it is possible in the KDM just by extending the ExtendedValue and creating some TagDefinition. However, I don't know how to do that in the MoDisco. Has someone the doubt ?
Please if you know how to extend the KDM please let me know, I'll be so grateful.
Thanks Guys.
|
|
|
|
|
| Re: Extending KDM Model [message #910816 is a reply to message #907348] |
Mon, 10 September 2012 08:42   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hello Raphael,
looking at the OMF KDM specfication, here is the way i would extend and use KDM metamodel :
- create some model which conforms to kdm metamodel ("http://www.eclipse.org/MoDisco/kdm/kdm" uri) with the "sample ecore reflective model editor"
- in the model, create the Stereotype instances, then the TagDefinition instances (profile definition)
- in another model which will use the extension, i would reference both kdm metamodel and the "profile kdm model" created. Then i can attach the created "Stereotype" instance to any element ("stereotype" link). And then i can attach some new "TaggedValue" or "TaggedRef" instances to the element. "TaggedValue" or "TaggedRef" instances will be attached to the existing "TagDefinition" instance.
I hope that will help you.
Fabien.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
|
| Re: Extending KDM Model [message #911225 is a reply to message #910832] |
Tue, 11 September 2012 03:57   |
Fabien Giquel Messages: 134 Registered: July 2009 |
Senior Member |
|
|
You do not have to create an EMF Project. My idea was about having some empty initialized myKdmModel.xmi file that you edit with "Sample Ecore Reflective Editor". But I see it is not so simple. The problem is that MoDisco does not provide the emf "kdm.editor" component (see EMF tutorials)
So one way is to initialize the myKdmModel.xmi from some Java program which would create and fill some org.eclipse.emf.ecore.resource.Resource instance, with instances conforming to "http://www.eclipse.org/MoDisco/kdm/kdm".
Regards,
Fabien.
----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
|
|
|
| Re: Extending KDM Model [message #911359 is a reply to message #911225] |
Tue, 11 September 2012 08:49  |
Rafael Durelli Messages: 35 Registered: September 2012 |
Member |
|
|
Hello Fabien, how are you?
I was looking for at the internet and I found out a tutorial, which teach how to extend EMF model. Thus, whether someone is having the same problem please send me an private message... I tried to put the link inhere but I couldn't.
I think that in such tutorial the guy is explaining the same thing that Fabien told me...
Best Regards.
|
|
|
Powered by
FUDForum. Page generated in 0.01671 seconds