wondering why autocompletion has so many choices.
I was wondering why when I type something like:
tt.getSize(uis.);
and I'm at the point of typing the period afer uis, I get lots of choices. If getSize only excepts int's (for example), it would be nice if the list of possible completions for uis. only showed me methods that returned int.
-Peter
Please sign in to leave a comment.
I'm not sure that is possible because how does it know what your intentions are. For example you may do uis.getSomeOtherObject().getAnotherOne().getOneThatReturnsAnInt()
or
uis.instanceVariable.getSomeIntValue()
I'm not saying that is good code but i've seen a lot of people do it. I've also typed uis.getStringObject() and then wrapped an Integer.intValue() around it to be
Integer.intValue(uis.getStringObject());
I don't really want the ide out smarting me :)
Try using the smart complete (CtrlShiftSpace) instead of the
auto-complete. It does exactly what you're asking for.
Vil.
"Peter Kellner" <peter@Peterkellner.net> wrote in message
news:771126.1039910336949.JavaMail.javamailuser@localhost...
>
>
If getSize only excepts int's (for example), it would be nice if the list of
possible completions for uis. only showed me methods that returned int.
>