[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.emf] Re: Associating two EMF models

Brian Berry wrote:

I am currently writing an EMF application that will be wrapping another
EMF application in order to construct the data model defined in the
external EMF model.  Is there a good way to associate one EMF model to
another or do I need to define DataTypes for each object of this secondary
EMF model in order to use them in my applications EMF model?

Hi Brian,

Yes, you can directly refer to one model from another. In fact the wrapping pattern you describe sounds something like the way we designed EMF's generator model (GenModel), which is illustrated in the attachment. You can see how each of the major Ecore classes is wrapped by a corresponding generator class, for example, how EClass is wrapped by GenClass.

We have a tutorial at http://dev.eclipse.org/viewcvs/indextools.cgi/%7Echeckout%7E/emf-home/docs/slibmod/slibmod_main.html that shows the steps involved.

Hope that helps.

Cheers,
Dave

GIF image