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)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
== Xcore Support ==
 
== Xcore Support ==
  
''' The development of this functionality has been done, but it is not yet available in a published build, the planned ETA is mid-january 2014.'''
+
''' This functionality is available from the 0.9.0 version of Texo.'''
  
 
Texo supports [[Xcore|xcore]] in the same way as an [[Texo/Generate_Artifacts|ecore]] model file. All the [[Texo#Code_generation_topics|code generation]] functionality is also supported for xcore files. You can even specify an [[Texo/Code_Generation_Details|annotations]] model on the basis of the xcore file, load the referenced xcore file as any standard resource in the annotationsmodel file.
 
Texo supports [[Xcore|xcore]] in the same way as an [[Texo/Generate_Artifacts|ecore]] model file. All the [[Texo#Code_generation_topics|code generation]] functionality is also supported for xcore files. You can even specify an [[Texo/Code_Generation_Details|annotations]] model on the basis of the xcore file, load the referenced xcore file as any standard resource in the annotationsmodel file.

Latest revision as of 20:06, 27 December 2014

Xcore Support

This functionality is available from the 0.9.0 version of Texo.

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