Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » referencing models
referencing models [message #376259] Thu, 07 November 2002 06:07 Go to next message
Eclipse UserFriend
Originally posted by: hwill.acm.org

Hi there,

I searched the newsgroup but couldn't find a previous message on this one...

Concretely: I'm playing with EMF/ecore to create an editor for
object-relational mappings. As for the relational part, it's easy enough to
come up with a simple model. For the object part, I'd like to avoid
re-inventing the wheel and rather re-use whatever is already done as part of
the standard ecore model.

My question is: How do I express a reference against the ecore model when
creating my own model, and have the ecore classes excluded from the code
generation via the genmodel? Tried various things, but either end up with
incorrectly generated classes or error messages when going through the emf
wizards.

Any suggestions are welcome.

Thanks,
Hans-Martin
Re: referencing models [message #376261 is a reply to message #376259] Thu, 07 November 2002 12:13 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Hans-Martin,

We are just finishing off a tutorial that will show how to create models with
dependencies on other models. If you need to reference Ecore, you will need to
the org.eclipse.emf.ecore project to be in your workspace so that the
Ecore.genmodel and Ecore.ecore are available to be referenced by your
Xyz.genmodel and Xyz.ecore.

You may want to have a look in org.eclipse.emf.codegen.ecore and see how the
GenModel.genmodel and GenModel.ecore reference Ecore.

If this doesn't help (and you can't wait for the tutorial ;-) could you explain
what you tried? Or send us a sample of what doesn't work...


Hans-Martin Will wrote:

> Hi there,
>
> I searched the newsgroup but couldn't find a previous message on this one...
>
> Concretely: I'm playing with EMF/ecore to create an editor for
> object-relational mappings. As for the relational part, it's easy enough to
> come up with a simple model. For the object part, I'd like to avoid
> re-inventing the wheel and rather re-use whatever is already done as part of
> the standard ecore model.
>
> My question is: How do I express a reference against the ecore model when
> creating my own model, and have the ecore classes excluded from the code
> generation via the genmodel? Tried various things, but either end up with
> incorrectly generated classes or error messages when going through the emf
> wizards.
>
> Any suggestions are welcome.
>
> Thanks,
> Hans-Martin

--
Ed Merks


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:File locking using Eclipse with CVS
Next Topic:adapters
Goto Forum:
  


Current Time: Fri Apr 19 10:40:34 GMT 2024

Powered by FUDForum. Page generated in 0.01848 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top