You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Learning the basics of the Eclipse Modeling Framework (EMF).

The EMF project is a modeling framework and code generation facility for building tools and other applications based on a structured data model. From a model specification described in XMI, EMF provides tools and runtime support to produce a set of Java classes for the model, along with a set of adapter classes that enable viewing and command-based editing of the model, and a basic editor.

https://eclipse.org/modeling/emf/


Learning goals for todays exercise:

  • Learn how to generate code using EMF.
  • Understand how use constraints.
  • Understand how to use containment / container and regular relations in EMF.
  • Learn how to instantiate your models in EMF and by Java code.

Prerequisites

  • You need Eclipse Modeling Tools. Installation guidelines.

Part #1: Modelling a library.

To get a modelling kickstart, we will start using an existing domain model from a library. This model consists of the following main concepts:

Do the following to get started with this example model in your Eclipse environment:

 

 

 

 

 

 

  • No labels