> [String myconst = "string";] > > ...thinking that it would take the var name and the type info from this. > Of course it works if I just select the "string" part.
In this case, "Convert Local to Field" is better (don't even think, it's not from the book :-)). Just position the caret to "myconst" and invoke it. Best regards, Valentin Kipiatkov ----------------------------------------------------------- IntelliJ Software, http://www.intellij.com/ "Develop with pleasure" ----------------------------------------------------------- ----- Original Message ----- From: "Wangjammer5" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 20, 2001 5:32 PM Subject: Re: [Eap-list] Extract interface... issue > > > For example, the current "Introduce Field" is counter-intuitive to me > > > personally. Any normal person I think will assume from the name that this > > > means you can highlight an undefined variable or an expression and > > > convert it to a field of the class. Not so. I still can't work out how > > > that feature works. > > > Yes, it actually works in this way. Just select an expression in code and > > invoke "Introduce Field" to create a new field initialized by this > > expression. Pretty similar to "Introduce Variable". Doesn't it work for > you? > > I get it now, I worked it out. > > Before I was trying to do it on selections like this: > > [String myconst = "string";] > > ...thinking that it would take the var name and the type info from this. > Of course it works if I just select the "string" part. > > Cheers > > > > _______________________________________________ > Eap-list mailing list > [EMAIL PROTECTED] > http://www.intellij.com/mailman/listinfo/eap-list _______________________________________________ Eap-list mailing list [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
