GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Already on GitHub? Sign in to your account. For the icons I see, could it be possible that you are using a different version of the Ecore Tools plugin?

Author:Meztisar Tygogar
Language:English (Spanish)
Published (Last):28 May 2006
PDF File Size:20.34 Mb
ePub File Size:13.98 Mb
Price:Free* [*Free Regsitration Required]

For simplicity sake, the different steps meta-model, model creation, as well as model handling through Kermeta introduced in the scope of this tutorial are illustrated by means of the finite state machines classical example. Enter a name for the meta-model file e. Choose EPackage as the Model Object i.

If Omondo is installed, the meta-model can be edited by means of the Omondo graphical editor. However, this tutorial focuses on the creation of meta-models using the Sample Ecore Editor. Then click on the created EPackage. Two properties of the created EPackage which is initially displayed as null have to be set through the Properties tab:.

At this stage, it is now possible to add children to the created root which is fsm EPackage in the considered example. This could be achieved by right-clicking on the class and choosing the New child item. Adding operations, attributes, or references to the newly created classes is achieved in the same way classes have been added to the root EPackage, i.

Still through the Properties tab, the EContainment property will have to be set to true for each reference which intended to contain instances. In the scope of the automaton example, the state reference of the Fsm class are defined as containment reference, and also the outgoingTransition reference in the State metaclass. By this mean, it will be possible to create, in an EMF model of it, a collection of transitions and states.

Setting properties, such as the upper and lower bounds, the type EType , of the attributes, operations, and references is achieved through the Properties view. For simplicity purpose, other properties can be ignored in the scope of this tutorial. At this stage of the tutorial, the designed meta-model should look like the following meta-model:. You can also edit these ecore file using a diagram editor from Eclipse Ecore Tools Project.

For example, the ecore tools project provides a class diagram editor that works on top of ecore files. The diagram informations ie. To create this. Then select the. Sample use of Ecore tool diagram editor on top of an ecore file. Creating a good meta-model is sometime difficult due to limitations of the used tools. For a better experience in using EMF tools and Kermeta, it is advised to respect the following rule:.

Create an element that will contain directly or indirectly all the other elements. The reflexive editor and the editor generated by EMF allow to create only one root element and then, from this element, create contained elements. This problem occurs only for model element creation from the editors.

The editors correctly display models from meta-models that do not follow this rule if you are able to create such models by another mean. Kermeta is not affected by this constraint. EMF Documentation. EMF tools are not the only way to create Ecore meta-models. Any tool that can manipulate Ecore can do the same.

Here is a small list of tools that can be used to create your meta-model:. It even enables to directly generate the EMF editor from this tool. Kermeta allows users to specify meta-models by means of the Kermeta syntax and then translate them into Ecore using the Kermeta2Ecore function. It will act as a basic manual roundtrip editor. Create a meta-model for Kermeta programs. Editing a new meta-model with the EMF sample editor.

Resulting meta-model. Metamodel with EMF sample editor. Metamodel with Ecore Tools Diagram Editor. EMF meta-model creation tips. External documentation. Alternative ways to create a meta-model.


File Extension Seeker

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them. Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them. Copyright c Martin John Baker - All rights reserved - privacy policy. It can be useful to be able to see a diagram representation of our ecore model.


Subscribe to RSS

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I build a DSL by use xtext. And i can find the ecore file of my DSL ,which generate by xtext. Right now i want convert this ecore File to a ecorediag File.


User Guide

Report message to a moderator. Powered by: FUDforum 3. Breadcrumbs Home Projects Forums. Eclipse Community Forums Forum Search:. Powered by FUDForum. Page generated in 0.

Related Articles