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/Xcore Support"

(Xcore Support)
Line 13: Line 13:
 
The available options are the same as for an ecore file. There is an additional option to generate an ecore file, for your convenience.
 
The available options are the same as for an ecore file. There is an additional option to generate an ecore file, for your convenience.
  
== Auto-generate ==
+
== Auto-generate EMF and Texo code ==
  
You can tell Texo to [[Texo/Automatic_Code_Generation|automatically]] generate the model code when model files change. This can however interfere with the EMF XCore auto generate feature. To disable the EMF Xcore auto generation uncheck the 'Compiler is actived' option in the project properties:  
+
You can tell Texo to [[Texo/Automatic_Code_Generation|automatically]] generate the model code when model files change. Also Xcore can auto-generate the EMF code.
 +
 
 +
The Texo autocode generation will generate in the same plugin/project as where the model files are located. The EMF code can be generated in a separate plugin/project. Combining Texo code and EMF code fits perfect in a three tier architecture [[Texo/EMFResource|supported]] by Texo: EMF on the RCP client and Texo on the server.
 +
 
 +
If you are only coding for the server side you can disable the EMF XCore auto generate feature. To disable the EMF Xcore auto generation uncheck the 'Compiler is actived' option in the project properties:  
  
  
 
[[Image:org.eclipse.emf.texo.xcore.uncheck.auto.png|center]]
 
[[Image:org.eclipse.emf.texo.xcore.uncheck.auto.png|center]]

Revision as of 05:57, 14 December 2013

Xcore Support

Texo supports xcore in the same way as an ecore model file. All the code generation functionality is also supported for xcore files. You can even specify an annotations model on the basis of the xcore file, load the referenced xcore file as any standard resource in the annotationsmodel file.

To try the different functionalities right click on the xcore file:


Org.eclipse.emf.texo.xcore.png


The available options are the same as for an ecore file. There is an additional option to generate an ecore file, for your convenience.

Auto-generate EMF and Texo code

You can tell Texo to automatically generate the model code when model files change. Also Xcore can auto-generate the EMF code.

The Texo autocode generation will generate in the same plugin/project as where the model files are located. The EMF code can be generated in a separate plugin/project. Combining Texo code and EMF code fits perfect in a three tier architecture supported by Texo: EMF on the RCP client and Texo on the server.

If you are only coding for the server side you can disable the EMF XCore auto generate feature. To disable the EMF Xcore auto generation uncheck the 'Compiler is actived' option in the project properties:


Org.eclipse.emf.texo.xcore.uncheck.auto.png

Back to the top