Generate-Controller
Is it possible to generate a controller for an existing domain class from within IDEA? If so, how? I can see the generate views option at the top of the page when I have the domain class open in the editor and I see the Controller name listed there but I do not get a Generate Controller option. I've tried right clicking, left clicking, double clicking. I'm sure I'm missing something obvious but I'm stumped. I am preparing for Grails presentation for a user group and I really want to use IDEA for this but it would be awkward to have to jump out to the shell to generate controllers.
Thanks for any help and thanks for such an awesome plugin.
Dave
Please sign in to leave a comment.
This is indeed not possible in jetgroovy 1.0. In 1.5 preview also available in plugin manager, that just requires 7.0.3 EAP it is possible together with many new features (like e.g. extract method refactoring)
Eugene.
Thanks for the prompt reply. I installed the latest EAP but I'm not sure how to get JetGroovy 1.5. I only see one JetGroovy option in the plugin manager and that is for 0.1.14107.
Thanks,
Dave
I too have tried this, I installed the latest EAP of 7.0.3 and plugin manager still only shows a 1.0 version of the plugin.
I took the 1.1 release from the WIKI but this is a very old release. Could you check to make sure the plugin manager is serving up the right one? It would be good to get onto the most recent 1.5 build.
If you go to the plugin manager site http://plugins.intellij.net/plugin/?id=1524 you'll see a build compatible with IDEA build 7675 that I was talking about. Need to check if it is not really seen by plugin manager in IDEA itself.
Eugene.
Sorry for the confusion. The Plugin Manager is working. The version that I got from the PI Manager after installing the 7.03 EA was the correct one and the Generate Controller function is working now!
Thanks again,
Dave
FWIW, this functionality is working for me with IDEA #7675 and JetGroovy 0.1.14107.
Jim