Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » JET: user regions and iterators
JET: user regions and iterators [message #55098] Fri, 09 January 2009 13:29 Go to next message
Eclipse UserFriend
Originally posted by: johannes.nel.gmail.com

HI All

First off,is there a more appropriate list for JET?
When adding several user regions (with or without uniqueUnmodified
markers), I notice that in iterators it goes all weird.
For exmaple:
if I have a class
package
{
//user region @imports
}
class
{
//user region @variables
constructer{
//user region @constructer
}
//iterator
void {curItem/@name}{
//user region @{curItem/@name}generated
}
//end-iterator
}

so when i regenerate it the changes I made (and i do remove my generated
markers) inside the functions declared by the iterator is a repeat of
what i have in the @constructer tag.

this also failed without the uniqueUnmodified marker, same behaviour.

is this expected behaviour, and if so can someone give me a heads up on
how they work, else what am I doing wrong?

Johan
Re: user regions and iterators [message #55203 is a reply to message #55098] Mon, 12 January 2009 14:54 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Johan:

"Johannes Nel" <johannes.nel@gmail.com> wrote in message
news:gk7jff$jjm$1@build.eclipse.org...
> HI All
>
> First off,is there a more appropriate list for JET?

This is the correct place. It is shared between JET, XPand and MTL. Putting
JET somewhere in the subject line gets my attention faster. And, I've just
been slow getting back into things after the new year...

> When adding several user regions (with or without uniqueUnmodified
> markers), I notice that in iterators it goes all weird....

What is the text between the <c:userRegion> and the <c:initialCode> tag?
This is the text that JET searches for (literally - case and whitespace
matter).

Also, what JET version are you using? I have vague memories of breaking
something in the 0.8 stream which was subsequently fixed (with considerable
embarrassment).

Paul
Re: user regions and iterators [message #55228 is a reply to message #55203] Mon, 12 January 2009 15:02 Go to previous message
Eclipse UserFriend
Originally posted by: johannes.nel.gmail.com

Hi Paul,

I use 0.9.1 08/08/01 build (Standard with the modeling edition of Ganymede).
The text in the user regions can be nothing, what the user created, or
optional code i only wish to insert if the generation marker is restored.

I make certain not to have user regions inside others, but as i said
iterators muck it up.

I am generating unit test and class shells from interfaces.

Paul Elder wrote:

> Johan:
>
> "Johannes Nel" <johannes.nel@gmail.com> wrote in message
> news:gk7jff$jjm$1@build.eclipse.org...
>> HI All
>>
>> First off,is there a more appropriate list for JET?
>
> This is the correct place. It is shared between JET, XPand and MTL. Putting
> JET somewhere in the subject line gets my attention faster. And, I've just
> been slow getting back into things after the new year...
>
>> When adding several user regions (with or without uniqueUnmodified
>> markers), I notice that in iterators it goes all weird....
>
> What is the text between the <c:userRegion> and the <c:initialCode> tag?
> This is the text that JET searches for (literally - case and whitespace
> matter).
>
> Also, what JET version are you using? I have vague memories of breaking
> something in the 0.8 stream which was subsequently fixed (with considerable
> embarrassment).
>
> Paul
>
>
Previous Topic:JET, custom XPAth function and iterating through the nodes which get passed in.
Next Topic:Formatting jet-generated java sources according to Eclipse formatting rules ?
Goto Forum:
  


Current Time: Tue Apr 23 09:46:35 GMT 2024

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

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

Back to the top