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 19:42 Go to next message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
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 10:31 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 592
Registered: July 2009
Location: Dortmund, Germany
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:XPand Debug
Next Topic:[Acceleo] How to load two models as input for generation?
Goto Forum:

Current Time: Thu Apr 26 15:45:20 GMT 2018

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

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