Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Xpand integer Global Variable(How can i increase integer Variable)
Xpand integer Global Variable [message #1008135] Sun, 10 February 2013 14:42 Go to next message
serhat gezgin is currently offline serhat gezgin
Messages: 237
Registered: January 2013
Location: Izmir
Senior Member
How can i increase global integer value and keep this value on this variable ?
Re: Xpand integer Global Variable [message #1018183 is a reply to message #1008135] Wed, 13 March 2013 06:31 Go to previous message
Karsten Thoms is currently offline Karsten Thoms
Messages: 353
Registered: July 2009
Location: Dortmund
Senior Member

It is not possible to influence the value of an Integer type global var. You could store a datastructure which holds a value of type integer as global var, and then set and get its value.

Or use the counter extensions from org::eclipse::xtend::util::stdlib::counter.

Need professional support for Xtext, Xpand, EMF?
Go to:
Twitter : @kthoms
Blog :
Previous Topic:[ACCELEO] Dynamic templates generator deployment
Next Topic:[Acceleo] UnresolvedReferenceException
Goto Forum:

Current Time: Wed Aug 27 17:28:16 EDT 2014

Powered by FUDForum. Page generated in 0.10696 seconds