Wednesday October 31, 2007
New Version of Groovy Support in Plugin Portal
If you go here in the Plugin Portal, you'll find I've uploaded a new ZIP file, called groovynbms-4.zip (the previous one was called groovynbms-3.zip). In other words, when you click the Download button, you will get groovynbms-4.zip. This time you will have five modules instead of three and this time each of them has a description, as indicated here:
Please make sure to be using NetBeans IDE 6.0 Beta 2. If you're using something later (like a daily build), it might still work (and it probably should still work), but no promises. Once you've installed, you'll find a new category in the New File wizard, with various Groovy file templates:
Once you've created a Groovy file template, you'll see it has the same icon as Java source files. There's also support for the Java parts of Groovy, as indicated below:
The Groovy parts of Groovy are not supported by code completion. In other words, for example, there's no code completion for Groovy-specific things, just Java-specific things. (Where Groovy doesn't support something provided by Java, you'll still find code completion, etc, working for you, you'll just end up with compilation or runtime problems later. But these situations should be minimal.) You'll also find Java code templates working for you (e.g., type ir, press Tab, and then you'll have import). Plus, you'll find the extension to the Java Application project type for running groovyc and Groovydoc from Ant, as described in an earlier blog entry. And when you look in the Library Manager, you'll find the Groovy Library there (had to be a snapshot of 1.1, otherwise the Groovydoc script won't work).
Sometimes the Run menu item, in the editor, is disabled. Especially when you've first started up the IDE or first opened the editor. If that happens, you need to do something in the editor (e.g., add some code and save it) to enable the menu item. Again, no need to download the Groovy installation, because everything should be handled for you by the JSR 223 implementation. Feedback welcome.
The sources are available here: http://nbgroovysupport.dev.java.net/. Anyone is welcome to take them and add to them.
Oct 31 2007, 10:55:54 AM PDT Permalink


