You don't need to do that.  Just type Class.<ctrl-space>, instead of variable.<ctrl-
space>.  The problem with putting it in the variable is that you end up with an 
instance variable accessing static methods, and it isn't obvious from the code that 
you aren't really changing the state of an object (unless the project uses some kind 
of naming convention for static variables and methods).

I agree however, it is a stylistic preference.  It is, unfortunately, available in the 
language.

Mike


On 27 Nov 2001 at 21:10, Tal Dayan wrote:

> 
> +100
> 
> This is a matter of style preference and is 100% valid in the language. I call 
>Intellij to have it as 
> an option so each user
> can choose the style he prefers.
> 
> We have used it intensively with jBuilder and it is very cumbersome to have to go 
>the the other 
> class, open the structure and looks
> for the name of the desired member. After all, this is what the autosuggestion is 
>intended to 
> solve.
> 
> Tal
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of 
>Liu, Mike
> Sent: Tuesday, November 27, 2001 7:08 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Eap-list] Static members not shown in autocompletion for objects
> 
>     There are cases where you want to do it. But couldn't IDEA make this feature 
>into an 
>     option?
> 
> 
> thanks,
> Mike Liu
> 
> 
>     -----Original Message-----
>     From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf 
>Of 
>     Patrik Andersson
>     Sent: Tuesday, November 27, 2001 12:55 PM
>     To: '[EMAIL PROTECTED]'
>     Subject: SV: [Eap-list] Static members not shown in autocompletion for objects
> 
>     -1 
> Personally, I do not want to see static members of an object on 
> autocomplete. Also, that makes people write bad code. (Accessing 
> static members using an instance). 
> regards, 
> Patrik Andersson 
> -----Ursprungligt meddelande----- 
> Fran: Vladimir Kudinov [mailto:[EMAIL PROTECTED]] 
> Skickat: den 27 november 2001 21:27 
> Till: [EMAIL PROTECTED] 
> Amne: [Eap-list] Static members not shown in autocompletion for objects 
> 
> Static members are not shown in autocompletion for objects. 
> For example in this excerpt: 
> Integer.| 
> with cursor positioned at | , after Ctrl+Space shows MAX_VALUE (static 
> member) in the list. 
> However the autocompletion list for object, like in this excerpt 
> new Integer(0).| 
> don't show static member MAX_VALUE (nor any other static members of 
> java.lang.Integer class). 
> The question is: could it be possible to show static members in 
> autocompletion list for objects. 
> Maybe this feature should be configurable... 
> --- 
> Vladimir Kudinov 
> V6.RU 
> 
> _______________________________________________ 
> Eap-list mailing list 
> [EMAIL PROTECTED] 
> http://www.intellij.com/mailman/listinfo/eap-list 

---
[EMAIL PROTECTED]
To obtain my PGP public key, mail "SEND PUB KEY" in the 
subject to "[EMAIL PROTECTED]"


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to