JET: user regions and iterators [message #55098] |
Fri, 09 January 2009 08:29  |
Eclipse User |
|
|
|
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 #55228 is a reply to message #55203] |
Mon, 12 January 2009 10:02  |
Eclipse User |
|
|
|
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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03218 seconds