It's all about the answers!

Ask a question

Ecore questions


Jamie Samdal (911) | asked Nov 18 '07, 11:41 p.m.
Hello,

I'm working on making a more inclusive ecore model for my plugin, and I've never worked with ecore before. Does anyone know a good reference? I'm particularly having trouble trying to figure out how to map my list structures to the ecore model, because the EEList gives me errors regarding it not being serializable. Is the ByteArray going to be my best option for making a list of items serializable?

Also, the JazzTalk tutorial mentioned the "ToDo" of listing what parts of ecore work with the codegen tool. Could someone who knows what those limitations are summarize them?

Thanks,
Jamie

One answer



permanent link
Chris Daly (61651) | answered Nov 21 '07, 6:18 p.m.
JAZZ DEVELOPER
jsamdal wrote:
Hello,

I'm working on making a more inclusive ecore model for my plugin, and
I've never worked with ecore before. Does anyone know a good
reference? I'm particularly having trouble trying to figure out how

The best reference is still the Eclipse Modeling Framework book:

http://www.amazon.com/EMF-Eclipse-Modeling-Framework-2nd/dp/0321331885

This book has been out for several years but there is a new (2nd)
edition coming out early next year. For Jazz purposes I would recommend
just reading chapters 2, 4 and 5.

to map my list structures to the ecore model, because the EEList
gives me errors regarding it not being serializable. Is the ByteArray
going to be my best option for making a list of items serializable?

You really need to be using EReferences to refer to Items and using the
upperBound and lowerBound properties on them to indicate multiplicity.
(link to more detailed answer below...)


Also, the JazzTalk tutorial mentioned the "ToDo" of listing
what parts of ecore work with the codegen tool. Could someone who
knows what those limitations are summarize them?

I need to fixup that TODO comment because something has been done, but
it's not exactly what I originally planned. There is a new tutorial out
called JazzBot:

https://jazz.net/wiki/bin/view/Main/JazzBotWalkthrough

Based on your questions here I think you should advance to this tutorial
now. See the sections on "EReference containment rules" and
"Multiplicity in storage models" which relate to your questions above.

In general the JazzBot tutorial tries to give a lot of ideas about what
you can do with Ecore storage models while staying "in-bounds" with
respect to what the codegen tool allows. I had originally planned to do
more of a straight reference guide, but the API (for codegen and storage
models) is still in flux. So in the end it seemed much more helpful to
have example code and commentary for a bunch of useful modeling
techniques without trying to go too deep in terms of rigorous detail.


Chris

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.