Setup your Model-driven Development Environment:
Now you can create your project:
- Get Eclipse IDE, Modeling distribution.
- Install Xpand to Eclipse IDE
- Install MWE to Eclipse IDE
- Ecore Tools is optional, but it helps you to create your metamodel (Ecore model) using a nicer visual diagram editor.
Now you can create your project:
- Create your metamodel (.ecore file). Better just use Ecore Tools, and create .ecorediag diagram alongside .ecore file.
- Create a .genmodel from your metamodel.
- Generate your Model package and classes from the .genmodel.
- Create a sample model (instance).
- Open the .ecore model file, right click on a EClass and choose Create Dynamic Instance.
- Create a Xpand template.
- Create a MWE workflow file (.mwe).
- Add necessary plugin dependencies to the MANIFEST.MF.
The steps above the high-level steps. It sounds complicated and indeed it can be confusing at first. (the reason why I'm blogging this here is so that I won't get confused in the future) ;-)
If you want the simplest thing, use the New Xpand Project Wizard - Sample Xpand Project and it'll provide up a ready-to-use Ecore+Xpand+MWE setup for you. :-)
Note: MWE and Xpand package names has changed since moved from openArchitectureWare to Eclipse Modeling Framework umbrella, so be aware of this when following older tutorials.
No comments:
Post a Comment