Chapter 8. Class diagram Kermeta Model editor

8.1. Overview

The Kermeta Graphical Editor is a view of the Kermeta model as a class diagram. It is generated with the tool "Topcased". The file containing the presentation informations is a *.kmdi. The *.kmdi is associated with a *.km file. The *.kmdi and *.km files must be in the same folder.

Class diagram Kermeta Model editor - overview

Figure 8.1. Class diagram Kermeta Model editor - overview


8.2. Opening of a Kermeta class diagram

We can open it, simply select and right-click "Open with / Kermeta class diagram"

Opening of a Kermeta class diagram

Figure 8.2. Opening of a Kermeta class diagram


8.3. Creating of a Kermeta class diagram

In order to create a Kermeta class diagram you have 2 ways.

  • Create a class diagram and the Kermeta model from scratch. Select the project or the folder where you want create the class diagram and right-click "New / Other / Kermeta / New Kermeta class diagram". Change the model name if you want.

Creating of a Kermeta class diagram from scratch - 1rst step

Figure 8.3. Creating of a Kermeta class diagram from scratch - 1rst step


Creating of a Kermeta class diagram from scratch - 2nd step

Figure 8.4. Creating of a Kermeta class diagram from scratch - 2nd step


  • Create a class diagram from an existing Kermeta model. Select the existing km file and right-click "New / Other / Kermeta / New Kermeta class diagram".

Creating of a Kermeta class diagram from an existing Kermeta model - 1rst step

Figure 8.5. Creating of a Kermeta class diagram from an existing Kermeta model - 1rst step


Creating of a Kermeta class diagram from an existing Kermeta model - 2nd step

Figure 8.6. Creating of a Kermeta class diagram from an existing Kermeta model - 2nd step