Generics
Hi,
i use intellij idea version "Selena 7860". i have a question about code completion of generics like:
--
new ArrayList]]>();
--
Is it possible? i get only the java1.4 code completion, but not the java5 code completion with generics.
Can anyone help?
thanks
marko
Edited by: mbauhardt on Jul 1, 2008 3:51 PM
请先登录再写评论。
The feature you ask works for smart completion only, i.e. if you type List l = new then you are presented with ArrayList]]> variant. Otherwise if String is not known from the context, then it seems nonsense to suggest ArrayList of all possible types.
It's a pity. eclipse support this. maybe i can do a workaround with LiveTemplates.
Anyway, thanks for help
Marko
IntelliJ supports this just fine. Type:
List]]> list = new
then press ctrl-shift-space. Available completions will popup.
Just curious: what exactly use case Eclipse supports?