Sounds like you should have used "introduce variable".
Jonas Kvarnstr�m wrote:
> Consider the following class:
>
> public class TestIDEA
> {
> public static class Nested {
> public Nested(Integer foo) {
> System.out.println(foo.toString());
> }
> }
> }
>
> After selecting foo.toString() and choosing 'introduce field', I get the
> following result:
>
> public class TestIDEA
> {
> private String x;
>
> public static class Nested {
> public Nested(Integer foo) {
> x = foo.toString();
> System.out.println(x);
> }
> }
> }
>
> I would have expected the String field to be generated inside Nested.
>
>
>
> _______________________________________________
> Eap-list mailing list
> [EMAIL PROTECTED]
> http://www.intellij.com/mailman/listinfo/eap-list
>
--
Erb
==============================================================
"The only time I like in the morning is afternoon."
- Russell D. Cooper
"If you do everything, then you're all done."
- Melissa F. Cooper
"Most of you are familiar with the virtues of a programmer.
There are three, of course: laziness, impatience, and hubris."
- Larry Wall
==============================================================
_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list