Over a million developers have joined DZone.

Secret Grails Feature in NetBeans 6.5

DZone's Guide to

Secret Grails Feature in NetBeans 6.5

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

If you have multiple domain objects and controllers in your Grails application, like here:

...it is easy to switch between a domain object and its controller, if you set shortcuts for doing this, which is (very hidden) here in "Keymaps" of Options window:


After setting shortcuts like the above, when you have a domain open, press the shortcut "Go to Grails Controller" and then the related controller class will open. Same the other way round. Also, even if the domain isn't open, but only selected in the tree view, the controller will open when you press the "Go to Grails Controller" shortcut. Same applies to views, which can also be thrown into the mix as you can see from the screenshot.


Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}