Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext 2.1 and Xpand
Xtext 2.1 and Xpand [message #756550] Mon, 14 November 2011 09:40 Go to next message
Akira Tanaka is currently offline Akira TanakaFriend
Messages: 98
Registered: March 2010
Member
Dear Xtext guru,

In the latest eclipse-SDK-3.7.1-Xtext-2.1.0 distribution, Xpand is no longer included. I think it was included in the 2.0(?). Does this fact mean Xpand code will not work with Xtext 2.1(?) or higher, or at least not recommended? Clarification on your plan/intention is very much appreciated.

Best,
Akira
Re: Xtext 2.1 and Xpand [message #756556 is a reply to message #756550] Mon, 14 November 2011 10:14 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 1823
Registered: July 2009
Senior Member
It just means that it is no longer part of the distro, as we recommend to use Xtend 2 for anything you used to do with Xpand. But it still can be used.
Re: Xtext 2.1 and Xpand [message #756845 is a reply to message #756556] Tue, 15 November 2011 10:34 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1812
Registered: July 2009
Location: Firenze, Italy
Senior Member
On 11/14/2011 11:14 AM, Sven Efftinge wrote:
> It just means that it is no longer part of the distro, as we recommend
> to use Xtend 2 for anything you used to do with Xpand. But it still can
> be used.

I noted that, if

// project wizard (optional)
fragment = projectWizard.SimpleProjectWizardFragment {
generatorProjectName = "${projectName}"
modelFileExtension = file.extensions
}

is enabled in the workflow, the generated project wizard code still
relies on Xpand; are you planning to move the fragment to Xtend2 as well?

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net


Re: Xtext 2.1 and Xpand [message #757560 is a reply to message #756556] Sat, 19 November 2011 06:37 Go to previous messageGo to next message
Akira Tanaka is currently offline Akira TanakaFriend
Messages: 98
Registered: March 2010
Member
Thank you for the response.

Xtend 2, "A language made for Java developers," is great if your target is Java. But if it is not, or if the objective is model to model transformation (rather than model to text (Java source) transformation), I think Xpand is simpler and is better to be included as a part of the package.

Best,
Akira
Re: Xtext 2.1 and Xpand [message #757567 is a reply to message #757560] Sat, 19 November 2011 11:30 Go to previous message
Meinte Boersma is currently offline Meinte BoersmaFriend
Messages: 434
Registered: July 2009
Location: Leiden, Netherlands
Senior Member
Xpand does model-to-text exclusively, while Xtend2 can do it (by virtue of rich strings) but certainly isn't limited to it. Xtend1 is (was) the language for model-to-model transformation and indeed is good at that, but as long as your metamodels are reified in terms of Java beans, Xtend2 can do the same trick and often more comfortably than with Xtend1. Xtend1 is no longer actively maintained.

Previous Topic:how to trigger generation of files in folder xtend-gen
Next Topic:How to decide which generator to use
Goto Forum:
  


Current Time: Fri Apr 19 07:15:15 GMT 2024

Powered by FUDForum. Page generated in 0.02273 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top