[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: On-the-fly EMOF-to-Ecore mapping

Víctor,

Comments below.

Víctor Roldán Betancort wrote:
Hi!

I've been experimenting a bit with .emof files.
I'm always curious if .emof files come from anything other than EMF. Where did your EMOF models come from?
I was surprised how these kind of files could be opened without any EMOF metamodel registered. Taking a look at the source code I realized that there was an on-the-fly mapping during XMI serialization.
Yes, the EMOF and Ecore models pretty near isomorphic.

I actually had some EMOF-based metamodels, but it was not possible to generate instances of that metamodel.
Where did they come from?
Creating the genmodel failed.
Did you validate the Ecore model that was produced? The generator typically does that for you, so I imagine it would be hard to overlook the warnings/errors. What exactly failed?
I think it's possible to be generated programmatically, but I'm aiming
to generate editors to create instances of my .emof based metamodel
That should be possible. I'd need to understand what isn't working.

My question is if it's really possible to generate the genmodel for an ..emof file, and in case there isn't, if there is any plan to give support to it.
It should definitely be possible, as long as the resulting Ecore model is well formed and complete. Validation should find all the problems. I'll need more details.

Regards, Víctor.