Further Griffon Plugin Developments for NetBeans IDE 6.7

Here are the new features/enhancements in the Griffon plugin development:
  1. Plugin Architecture. The plugin now consists of 3 modules that can either be part of the NetBeans sources or separated from them. So, I've basically sorted out the dependencies and am able to provide three NBM files that constitute the plugin. One is a new module, providing the Griffon project; the second is the Grails platform extended with Griffon support; the final one is a 'friends' element added to the Groovy support module, enabling it to be used by the new Griffon project module.

  2. "griffon create-mvc". This command is now supported, generating a model, view, and controller in the project structure. Either a menu item on the project node or a template in the New File dialog invokes the command, producing a dialog where a prefix is specified for the name of the files.

  3. Plugin installation. Griffon, like Grails, lets you add plugins to an application. The plugins are for developers, not for end users. For example, there's a plugin that adds a splash screen and another plugin that provides wizard support (based on Tim's wizard project on java.net!). These files and related commands are installed as plugins, which can now be done via a dialog in the IDE, just as is done for Grails.

  4. "griffon help". This command is supported, as is done with Grails, in such a way that a dialog lists the currently available commands. A refresh button lets you refresh the list, which makes sense after a plugin is installed. Then a command can be selected, Run is clicked, and the selected command is run. You're therefore not constrained by the menu items offered on the project node. Instead, you can invoke any command supported by your Griffon distribution.

  5. Pruned Logical View. Now the logical view only presents a small subset of folders, i.e., only the model/controller/view folders, as well as the lifecycle and configuration folders, together with the test folders. So, the Files window displays everything, while the logical view in the Projects window is much more discerning:

Several things need still to be done. For example, project-level commands such as "Rename" and "Copy" need to be implemented. Also, Grails functionality needs to be restored and tested.

I have tried out the plugin in NetBeans IDE 6.7 Beta under Ubuntu. Soon, some volunteers/guinea pigs would be welcome to try other combinations.

I intend to demonstrate this Griffon plugin at the Java University session on NetBeans, NetBeans Integrated Development Environment (IDE) 6.5 Architecture and Its Powerful Plugins. It will be held from 18.00 to 21.00 tomorrow at the Intercontinental Hotel, which is on 888 Howard street, very close to the Moscone Center.


Amazing, you have done all this on your own? That's fantastic! Looks like we might get loads of new Platform Tutorials this year ;)

Nice work :)

Posted by Varun Nischal on May 31, 2009 at 10:17 PM PDT #

nice, but it overlaps with the grails plugin, now all my grails project don't execute as they are recognized as griffon projects when I run them :(

Posted by magomarcelo on July 01, 2009 at 07:01 AM PDT #

Yes, that's what the plugin page already told you, isn't it?

Posted by Geertjan on July 01, 2009 at 06:29 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« April 2014