Texo/Generate Artifacts

From Eclipsepedia

Jump to: navigation, search

Contents


Introduction

Texo code can be generated directly by right-clicking on one or more xsd or ecore files and selecting 'Texo > Generate Code'.


Org.eclipse.emf.texo.generate.code.png


As a default the generated code is placed in a src-gen folder in the project of the selected model file. If you generate code for multiple model files in different projects then the generated code is created in the project of each resp. model file.

Setting the output folder

The output folder for the generated artifacts can be set in the project properties. First you need to add the Texo nature to the project (otherwise the Texo tab is not visible in the project properties).


Org.eclipse.emf.texo.configure.nature.png


Then right click on the project and go to the project properties and then Texo.


Org.eclipse.emf.texo.properties.png


There are two fields, the output folder is the destination of the generated code and artifacts. The templates folder is used for template overriding.