just used structural replace - successfully :-)

... and it worked :)

it was a very simple case where I had to modify 3 statements of same kind:

parseLong(v1);
parseLong(v2);
parseLong(v3);

I wanted to get:
v1.longValue(), v2.longValue(), v3.longValue()

-> select "parseLong(v1)", hit replace structurally,
change v1 into $var$, type as replacement template: "$var$.longValue()" -> and there it goes !!!

Thank you!!!
Thank you!!!
Thank you!!!

;)

1 comment
Comment actions Permalink

Yeah, it's a bit fussy sometimes but it's great when it just works.

"Michael Damberger" <michael.damberger@t-online.de> wrote in message
news:13898421.1090586215010.JavaMail.itn@is.intellij.net...

.. and it worked :)

>

it was a very simple case where I had to modify 3 statements of same kind:

>

parseLong(v1);
parseLong(v2);
parseLong(v3);

>

I wanted to get:
v1.longValue(), v2.longValue(), v3.longValue()

>

-> select "parseLong(v1)", hit replace structurally,
change v1 into $var$, type as replacement template: "$var$.longValue()" ->

and there it goes !!!
>

Thank you!!!
Thank you!!!
Thank you!!!

>

;)



0

Please sign in to leave a comment.