Did you know? DZone has great portals for Python, Cloud, NoSQL, and HTML5!

Harris has posted 16 posts at DZone. View Full User Profile

Secret Grails Feature in NetBeans 6.5

12.31.2008
Email
Views: 4455
  • submit to reddit
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.

 

AttachmentSize
fig-2-grails.png5.38 KB
fig-1-grails.png24.28 KB
5
Your rating: None Average: 5 (1 vote)
Published at DZone with permission of its author, Harris Goldstone.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)