You might have heard tons of information about NetBeans 6.0 in recent days.
I’m using NetBeans 6.0 Beta 2 for almost 2 weeks now for some of my development activities.
Though it had lots of new features available, the new refactoring is the feature which impressed me the most.
(Note: So far, I have used the ide for Java SE projects only)
Refactoring in NetBeans 5.5 is good, but in 6.0 it’s outstanding, i must admit.
I heard that refactoring has been improved in 6.0, but i didn’t spend time reading what were the improvements.
So when i first pressed the shortcut key to refactor a local variable, it highlighted all the occurrence of the variable in blue and when i started to change the variable name in one place, all the highlighted occurrences were changed simultaneously. This is really excellent!!!
Now when i start changing it, all the highlighted occurences change simultaneously.
This is the view after refactoring is done.
Great, isn’t it?
I was even more impressed when i stumbled across one more astonishing refactoring feature….
This time, i wanted to change a method name used in more than one class and what better than the netbeans refactoring?
I want to change a method name “getAESEncryptedText” to “getEncryptedText”, but this method is referred in more than one class. So when i pressed “CTRL + R”, this is what i got.
I wanted to have a preview of the places where this change will be effected. This is the preview offered by the ide:
That is outstanding. You can see exactly how the refactored code will look like in the preview pane.
I was thrilled by this offering from netbeans.
Now i’m motivated to compare the refactoring module offered by netbeans and eclipse.
Interesting times ahead for the developers….