This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
does anyone know the shortcut? with InteliJ I select a block and with a command I can enclose that block with a switch, if, loop, you name it. and if some of the methods throw an exception inteliJ automatically adds all check exceptions. sweet. Any similarity with eclipse?
I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
If I remember correctly, quick fix (Ctrl-1) does the trick. Code Assist (Ctrl-Space) might also be worth a try. (It basically lists all templates containing a line-selection variable, so it's quite easy to extend. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=44806 )
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
subject: [eclipse] shortcut to enclose block of code (like inteliJ)