Groovy Refactoring in NetBeans

Posted by Martin Janicek on Oracle Blogs See other posts from Oracle Blogs or by Martin Janicek
Published on Mon, 22 Oct 2012 15:03:03 +0000 Indexed on 2012/10/22 17:12 UTC
Read the original article Hit count: 258

Filed under:

Hi guys,

during the NetBeans 7.3 feature development, I spend quite a lot of time trying to get some basic Groovy refactoring to the game. I've implemented find usages and rename refactoring for some basic constructs (class types, fields, properties, variables and methods). It's certainly not perfect and it will definitely need a lot fixes and improvements to get it hundred percent reliable, but I need to start somehow :) I would like to ask all of you to test it as much as possible and file a new tickets to the cases where it doesn't work as expected (e.g. some occurrences which should be in usages isn't there etc.) ..it's really important for me because I don't have real Groovy project and thus I can test only some simple cases. I can promise, that with your help we can make it really useful for the next release.


Groovy refactoring showcase


Also please be aware that the current version is focusing only on the .groovy files. That means it won't find any usages from the .java files (and the same applies for finding usages from java files - it won't find any groovy usages). I know it's not ideal, but as I said.. we have to start somehow and it wasn't possible to make it all-in-one, so only other option was to wait for the NetBeans 7.4. I'll focus on better Java-Groovy integration in the next release (not only in refactoring, but also in navigation, code completion etc.)



BTW: I've created a new component with surprising name "Refactoring" in our bugzilla[1], so please put the reported issues into this category.

[1] http://netbeans.org/bugzilla/buglist.cgi?product=groovy;component=Refactoring

© Oracle Blogs or respective owner

Related posts about /Features