Carlos,
we intentionally removed the 'static' checkbox
from 'Introduce Field' dialog to make the workflow
less "jumpy".
Static fields are introduced automatically
for expressions in static contexts (static methods etc.).

Probably we want a static checkbox back, but its state
should not be remembered between invokations - it should be on (and
disabled) in static context, and off in non-static. What would you say?

As to uppercase names, it is a matter of style.
I do not like the idea of making dialog selection dependent on the name
you type. It will be a pain to use for someone who practizes different
naming conventions.
BTW, I suggest to use "Introduce Constant" to introduce
static fields (I suppose you usually want to make them final also, don't
you?).

Friendly,
        Dmitry

Carlos Costa e Silva wrote:
> Win2k sp2, jdk 1.4.0_01, idea #634.
> 
> The new Introduce Field dialog is fine, but it needs:
> 
> 1. A static checkbox.
> 
> 2. If the field name is in uppercase, the static checkbox should be
> auto-checked.
> 
> Carlos
> 
> ---
> Carlos Costa e Silva <[EMAIL PROTECTED]>
> 
> 


-- 
Dmitry Lomov
JetBrains Inc. / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to