|
Re: Replacement for Xtend code generation [message #1854354 is a reply to message #1854337] |
Mon, 15 August 2022 19:36   |
Ed Willink Messages: 7635 Registered: July 2009 |
Senior Member |
|
|
Hi
Within Eclipse you have two alternatives.
a) Acceleo has the advantage that it complies with an OMG standard, but is sadly further down the "in danger of losing support" than Xtend. It lacks the easy intermixing of Java/Xtend. Integration with Maven seems to defeat many users. I used to copy a manual build to GIT.
b) JET is really vintage, but is a critical part of EMF's code generation, and as such has comparatively recently gained an Xtext editor. JET is a previous generation to Xtend/Acceleo but is the most likely to survive. The JET builder has a variety of dynamic/IDE modes that can be confusing.
However Xtend is implemented as a translator to Java, so even if Xtend vanishes, you have the option of a final translation and then defining the auto-generated Java as primary sources thereafter.
Personally I prefer a mix of limited Xtend string templates layered on primarily Java support 'libraries'. This reduces the amount to revamp if the no-Xtend day comes, and also reduces the amount of code where I have to workaround the poor debugger/refactor/... support typical of JDT extending tools where the developers lack the skill/enthusiasm/public-access to fully emulate JDT. (Even the JDT developers fail to support new Java features such as lambdas adequately.).
Regards
Ed Willink
[Updated on: Tue, 16 August 2022 06:42] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01793 seconds