Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » How Increment Variable in loop
How Increment Variable in loop [message #643852] Wed, 08 December 2010 08:41 Go to previous message
Manuel Selva is currently offline Manuel Selva
Messages: 189
Registered: July 2009
Location: Grenoble, France
Senior Member
Hi all, in my .mtl file (working on EMF model) I have the following loop


[for (param : Param | subCat.params)]
    record.readPayload32("What to put here ??");
[/for]


What I want is to replace the "What to put here" by a value starting at 0 and incremented on each loop's iterration by

[param.length/]
The Param EClass has an integer length attribute.

How can I acheive this ? I was not able to find any solution until now ...

Thanks in advance for your help,
Manu


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:[Acceleo 3.0.1] Error notifying registry change listener.
Next Topic:[Acceleo] Protected block indentation problems
Goto Forum:
  


Current Time: Fri May 24 19:47:57 EDT 2013

Powered by FUDForum. Page generated in 0.01637 seconds