Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EEF/Tutorials/First Generation"

< EEF
(EEF Models initialization)
(Generation and parameterization)
Line 18: Line 18:
  
 
When parametrization is done, generation can be done with the action "Generate EEF Architecture" on the right click on the EEFGen model.
 
When parametrization is done, generation can be done with the action "Generate EEF Architecture" on the right click on the EEFGen model.
 +
 +
[[Image:generateEEFArchitecture.png‎]]

Revision as of 05:17, 9 September 2009

Presentation

This first tutorial will show you the common use of EEF. It describes the step to obtains the EEF models and generate the associated. Finally, It shows how to link the generated code with a simple treeview EMF editor.

Tutorial

First you have to do this tutorial in a "EEF ready" environment. To obtain this environment, read the EEF Installation Guide.

EEF Models initialization

In the EEF environment, the first step is to initialize the EEF models. These models describe the visual elements of the generated editing components and the binding between these elements and the meta-classes of your meta-model. EEF provides an action to create these models. To call this action, perform a right click on the genmodel of your metamodel and lauch the action EEF > Initialize EEF models.

InitializeEEFmodels.png

Generation and parameterization

The initializer has just created elements for meta-class attributes choosing predefined default widgets. So you need to parametrize models to modelize correctly the generation, for example, references representations, widgets changes.

By default, the generation is done in the plug-in where is the example model and the parametrization model assigns a "src-gen" directory to know where the code is going to be generated. This information can be modified.

When parametrization is done, generation can be done with the action "Generate EEF Architecture" on the right click on the EEFGen model.

GenerateEEFArchitecture.png

Back to the top