Random Eclipse Questions

Isn’t Eclipse really hard to use?

No.

Why won’t my generated EMF Model Editor let me add children!?

If you have a model where one element should have children and the generated editor won’t let you add children, make sure that the “Containment” box is checked in the properties view for the association (the arrow) between the two elements. emfContainment

Here’s a link to a good, working model from Lar Vogel’s tutorial on EMF. I missed his containment remark in his text, but I found it in his ECore model:

https://github.com/vogellacompany/vogella/blob/master/de.vogella.emf.webpage.model/model/webpage.ecore

How do I set the base package name of my EMF model?

One of the things I hate about EMF is that it has options for everything, but hides them in crazy places. I should be able to set the package name just by changing the package name! The solution is simple enough, but just took me a bit to figure out. Open your genmodel, select your package, open the “All” section in its properties and set the package name to what you want.

emfBasePackageName

Advertisements

Author: Jay Jay Billings

I'm a physicist with a serious addiction to computing. Most days you can find my bumming around ORNL and Twitter.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s