Eclipse Modeling Tools tutorial - Setting up the environment [screencast]

Series: 
Eclipse Version: 

This is my first video post. In it I present how to use Eclipse Modeling tools at a very basic level. The goal of the video is to serve as the basis for other tutorials to come. If you want to receive more videos like this please subscribe to my email list in the sidebar (or at the bottom of the page if you're on mobile).

 

 

Transcript

Hello, I'm Edmundo and welcome to my first modeling tutorial. In this tutorial we are talking about how to set up the environment for a modeling project.

I'm using Eclipse Modeling Tools Luna SR 1. This lesson focuses two things. First we explain the creation of a project and the project structure. Now, as you can see the project was created but the Class diagram for your ecore model is not showing. This is a bug in Eclipse. What I need to do is just close the diagram, close Eclipse, reopen it and I'll be able to see the Class diagram.

Creation of a project

To create a project I right click the Model Explorer Pane, select New, and then I choose either "Project..." or "Modeling project". 

"Modeling project" is a bare bone project and I prefer to have Eclipse create most needed files in one click, so I choose "Project". In the Dialog I choose the "Ecore Modeling Project", click "Next" and enter the name of my project. 

I leave the default settings by clicking Finish.

Project structure

I'm only interested in the model folder.

The ecore file contains our metamodel. I can edit the metamodel just by using this file. However, I usually don't do that. In fact, I edit a graphical representation of this metamodel. This representation can be found in the presentation file, which has an aird extension. 

To access it I I look under Design->Entities->Class Diagram. I open it and there is an empty canvas to start designing my metamodel graphically.

Thank you for watching this video. If you enjoyed it, please be sure to subscribe to my mailing list in order to learn when new videos are available.

tweet: