Getting all materials

When writing [JAVA]new Material(assetManager,"[/JAVA] and pressing ctrl+space, a list of all material types pops up (which is a really cool feature).
Simple question: How do you do that?
How do you browse through the libs and find them?

Thank you

@benkibitzer said: When writing [JAVA]new Material(assetManager,"[/JAVA] and pressing ctrl+space, a list of all material types pops up (which is a really cool feature). Simple question: How do you do that? How do you browse through the libs and find them?

Thank you

I guess this is a new NetBeans feature.
As far as I know many IDEs have such a thing.

Many major IDEs have the autocompletion feature your’re talking about. Whether is it implemented for Java classes, JME materials or any other things (and other languages like Python, C++ and others…) is an implementation detail. The basic pattern to implement this feature is to do a preliminary scan of all available resources and source files, parse them and build a special fast-access datastructure to be used for the autocompletion. The main point being is that the IDE usually does not browse the sources in real-time, even if it seems so. It always uses caching.

Its a jME SDK specific feature, ofc it uses the existing “autocompletion” infrastructure in the NetBeans platform, heres the code we use to do this:
https://code.google.com/p/jmonkeyengine/source/browse/#svn%2Ftrunk%2Fsdk%2Fjme3-core%2Fsrc%2Fcom%2Fjme3%2Fgde%2Fcore%2Fcompletion