Complete static methods and fields with the new IntelliJ IDEA 12 EAP build 122.29
August 9th, 2012 by Peter GromovDid you know how to quickly complete a static method call or a constant reference without writing the class name first? Just type some prefix and invoke Basic Code Completion (Ctrl+Space) twice (or Ctrl+Alt+Space once):

There are two problems though:
- The entire project is searched and there might be just plain too many completely unrelated suggestions, and it’s hard to search among them what you need.
- You may not remember the name of the member you want while knowing what it type should be.
Now we have a solution for these problems. It’s the plain old second SmartType Completion (Ctrl+Shift+Space). It now also scans the entire project for static methods and fields, but suggests only those whose type is suitable in the context:

This may be very handy with collection libraries like Guava:

You can try this in the new EAP: build 122.29. Of course, it contains other improvements as well: code completion has become faster in Java, Groovy extensions are now recognized in more cases, Extract Style refactoring for Android, etc. Simply download the build or “Check for updates” in the IDE itself.
Tags: Code Completion, Leda

August 9th, 2012 at 3:09 am
Just keeps getting better and better
August 9th, 2012 at 4:26 am
This update is broken Scala and Play plugins
August 10th, 2012 at 10:19 am
Struts 2 bug (if my ActionClass extends ActionSupport and implements ServletRequestAware, ServletResponseAware, ServletContextAware, ApplicationAware)
+
SVN bug (update and/or commit)
August 10th, 2012 at 2:58 pm
The bug with class hierarchy (e.g. Struts 2) is found and will be fixed in the next EAP, sorry.
As for the rest, please report that to YouTrack.
August 10th, 2012 at 8:06 pm
Any Update on Playframework v2 support?
August 11th, 2012 at 7:41 am
Kotlin plugin does not works with this build.
August 13th, 2012 at 9:23 am
Kotlin update is coming soon.
August 16th, 2012 at 6:44 am
With new update I got all my projects in red.
As example - IDEA complains about that java.lang.String is defined in two places.
I’m developing for BlackBerry and I have dependency to RIM jar file and dependency to our core library.
I could remove JSDK dependency and there are no complaints about duplicate class definition. But I have now issue with tests because I’m running them in JUnit and Mockito and it can’t be done without JSDK. If I add JSDK to unit test modules back I have now back complaints about duplicate modules.
So I see only one solution - duplicate modules with same sources an different dependencies. And use one part of them in project edition and second part in unit test but I’s really big hassle. Any recommendations?
August 16th, 2012 at 7:27 am
http://stackoverflow.com/questions/11987108/developing-for-blackberry-with-intellij
August 27th, 2012 at 9:23 am
Eugen, please try a newer EAP, the problem should be fixed there