Friday, June 8, 2012

Associate new file type with Netbeans velocity editor plugin

I just installed Netbeans Velocity Editor plugin, by default it only supports *.vm and *.vsl file types. But we use *.vtl as velocity template in our projects.

To enable the velocity support for *.vtl file type, go to "Tools" -> "Options" -> "Miscellaneous" -> "Files", click "New ..." to add a new file extension, then select "text/x-velocity" for "Associated File Type (MIME)", click "Ok".

Netbeans 7.0.1 context menu (right click) very slow

For some reason the context menu of my Netbeans 7.0.1 was really really slow. Sometimes it took more than 30 seconds for it to show after I right click on a class or variable.

I tried to deactivate a few plugins: Restful service, SOAP service, Hibernate, etc according to my google search on the similar issue. But none of them worked.

Finally I decided to upgrade my Netbeans to the latest version of 7.1.2. And the problem is solved!