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 "Texo/Generate Artifacts"

 
(4 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
== Introduction ==
 
== Introduction ==
  
Texo code can be generated directly by right-clicking on one or more xsd or ecore files and selecting 'Texo > Generate Code'.  
+
Texo code can be generated directly by right-clicking on one or more xsd, xcore or ecore files and selecting 'Texo > Generate Code'.  
  
  
Line 13: Line 13:
 
== Setting the output folder ==
 
== Setting the output folder ==
  
The output folder for the generated artifacts can be set in the project properties. The Texo properties can be set in the project by
+
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).
 +
 
 +
 
 +
[[Image:org.eclipse.emf.texo.configure.nature.png|center]]
 +
 
 +
 
 +
Then right click on the project and go to the project properties and then Texo.
 +
 
 +
 
 +
[[Image:org.eclipse.emf.texo.properties.png|center|600px]]
 +
 
 +
 
 +
There are two fields, the output folder is the destination of the generated code and artifacts. The templates folder is used for [[Texo/Template_Overriding|template overriding]].

Latest revision as of 16:46, 13 December 2013

Introduction

Texo code can be generated directly by right-clicking on one or more xsd, xcore 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.

Back to the top