alanwilliamson
I am using Eclipse3 and I am not sure if this feature was in the previous versions since I never noticed. As anyone that has done JTree work, it's a casting nightmare. So while you rattle out a bunch of code, the compiler moans of various class mismatchs. I accidentally right hand clicked on one problem in the Problem panel and discovered the 'Quick Fix' option. Having no idea what the hell it done, I ventured to click it once and never go near it again if it blew something up!
To my absolute surprise it fixed things for me! Put in the casts for me; even implemented the methods for the many interfaces that Swing makes your implement. Wow, what a time saver that has been. Its a wonderful piece of technology and I applaud the developer that implemented this. Job well done.
So the question now, just what other goodies is lurking within Eclipse that I've yet to discover.
Just been informed that this feature was in earlier releases of Eclipse. Still a great feature!
Comments
please note, all comments will be moderated for spam and abuse before being publicly posted.
Article Details
- Published:
9:07 PM GMT, Tuesday, 6 July 2004 - Categories:
Technical - Comments:
3 left; add comment
Related Articles
Article Archives


Quick Fix is one of the great things about Eclipse. I've come to rely heavily on it. I just love being able to type in a statement calling a non-existant method, type Ctrl-1 on that line and select "Implement Method" (or whatever the name is) and Poof! Stub method created with a TODO tag and ready to populate.
Joey Gibson
I suggest you look at new and noteworth features of every 3.0 milestone at eclipse.org. You will be amazed.
Prashant Rane
Ctrl-1 is THE magic keystroke. Another magical one is Ctrl-Space. See more details here - http://www.jroller.com/page/eu/20040412#eclipse_shortcuts_for_lazy_developers
If you are lazy enough you should do your homework and create templates for common fragments of code you are using.
eu