This is a utility for generating a Thrift IDL file from an annotated Ecore metamodel. The main advantage of doing so is that Eclipse tooling for editing Ecore metamodels is more mature than existing Thrift editors, including some convenient textual editors such as Emfatic. Additionally, Ecore does not suffer from some of the inconveniences of the Thrift IDL, such as having to sort definitions in a particular way.
It is written in EGL from the Epsilon project.
To install, please use this update site:
https://agarciadom.github.io/ecore2thrift/updates
For more information, including a basic tutorial and a reference of the available annotations, visit the wiki.
-
Thrift cannot have any method names that are Thrift reserved words, even if they are not reserved words in the language you are using Thrift to generate.
This includes, for example, "list" and "delete".
-
It is impossible to add an annotation to an item in a throws list in EMF, so we cannot generate numbers on exceptions in this way.
If you need to change the number of a numbered element, add a @thrift(n=<num>)
annotation in the .emf file, for example @thrift(n="3")