Java Performance Services
Training, Seminars, Benchmarking, Tuning

Java Performance Tuning Course


Chania Crete, May 17-20, 2010


Sun Extreme Learning EXL-2025

Houston, December 1-4,2009
New York, December 8-11, 2009
Washington DC, January 5-8, 2010



San Francisco, January 11-14

Anti-if

I have joined Anti-IF Campaign

Calendar

««Nov 2009»»
SMTWTFS
1234
5
67
891011121314
15161718192021
22232425262728
2930

Performance Anti-Patterns

My Top Tags

                                       

Mailing List

My RSS Feeds








Interesting NetBeans 6.0 feature

posted Monday, 27 November 2006
I was just taking NetBeans 6.0 for a test drive when I can into a pretty cool feature. I was typing in a method name and as expected, Intellisense narrowed the list to the one that I wanted in three keystrokes. I hit enter only to see something unexpected happen. NetBeans had taken information from the environment that I was working in and *filled in* all the method parameters for me. Since it has selected everything correctly there was nothing left to do. In the last line of the code fragment below, I typed, j, t, down arrow, enter, ., s, e, t, T, enter, NetBeans did the rest. You can see that priceData is highlighted so that I could quickly replace it had it guessed wrong.





There are also a number of other interesting improvements to the intellisense. I left the line of code in an incomplete state only to watch NetBeans fill out the line for me. As trivial as the fix may have been the fact is, it not only detected that there was a problem, it fixed it rather than nagging me to do it. Well done!

tags:      




1. Paul Rivers left...
Monday, 27 November 2006 10:42 pm

Now THAT'S pretty cool!


2. your mama left...
Tuesday, 28 November 2006 12:24 am

wow, cool for fool ... eclipse has it for years.


3. Kirk Pepperdine left...
Tuesday, 28 November 2006 7:58 am

Interesting, in all the time that I've used eclipse I've not seen it happen. IntelliJ gives a hint but it also doesn't fill in method parameters with the correct values either. So I'm not saying that there isn't a way to get eclipse of IntelliJ to do this. However I've not seen them do it.

At any rate, as good as this feature is, there are other features that still need some work. For example, I opened the project up in IntelliJ for debugging because I couldn't see an easy way to evaluate expressions. I also don't really care for the placement of the debugging buttons.

On the plus side, Matisse is really good for simple GUIs and JFliud is another big + IMHO.


4. B. K. Oxley (binkley) left...
Tuesday, 28 November 2006 6:51 pm :: http://binkley.blogspot.com/

IntelliJ IDEA has does this for many years.

Great time-saver, to be sure.


5. Jason Kratz left...
Wednesday, 29 November 2006 12:28 am

I always love the type of comments above. If Eclipse and/or IntelliJ have in fact "done this for many years" thats good for Eclipse and IntelliJ. The post was about a feature in Netbeans.


6. Kirk Pepperdine left...
Wednesday, 29 November 2006 1:04 am

Well, Eclipse nor Intellij do not fill in method parameters with reasonable names as far as I know. I don't use eclipse that often but I am a long time IntelliJ user (ver 2.5). Both fill in method parameters but at least IntelliJ doesn't fill in useful values, just the types.

And yeah I should have figured this post would start a silly IDE war. Really folks, if you like the IDE you are using than I'm really happy for you. I like IntelliJ but wanted to check out eclipse for a number of reasons. I still like IntelliJ but I was impressed with the new intellisense features.


7. Dan left...
Wednesday, 29 November 2006 2:27 am

With eclipse you need to ensure that in the Code Assist options page that the 'Fill argument names on completion' and 'Guess filled method arguments' options are checked. I don't think they are both on by default.