Further Griffon Plugin Developments for NetBeans IDE 6.7
By Geertjan-Oracle on May 31, 2009
- 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.
- "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.
- 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.
- "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.
- 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.