Eclipse trick

I'm writing some quick code samples for my presentation tonight and accidentally discovered a neat trick in Eclipse. I went to add a new folder for try/catch demos. I named the folder, literally, try/catch. I had meant to do trycatch of course. So what did Eclipse do? It nicely made a try folder with a catch folder underneath:

I wasn't expecting that! While on the topic of file navigation and Eclipse, I also didn't know (until a few months ago) that the Del key works in the Navigator as well. It's a quicker way to delete files.

Now if I could only get it to run my Groovy files with one click instead of two...

Comments

yeah, this is really helpful when adding a new folder chain like com/cubicleman/my/evil/app/with/a/long/class/path

Now if I could only get my damn crtl + shift + R working which appears broken in Eclipse 3.4 with FB 3.0.1. Very handy this key sequence.

DK
# Posted By Douglas Knudsen | 8/21/08 2:52 PM
The thing to remember is that the navigator will act like the explorer. You can copy and paste files right into folders there because of that. It is the one reason I use it above all other IDE's!
# Posted By Dan Vega | 8/21/08 3:41 PM
Raymond - Do you use Eclipse of Groovy also? I installed a Groovy plugin this morning and was going to give it a try.
# Posted By Mike Henke | 8/21/08 4:27 PM
Yep, using the Groovy Eclipse plugin.
# Posted By Raymond Camden | 8/21/08 4:32 PM
Ray - how do you get your groovy files to run with two clicks? Are you running unit tests? I'd love to hear how you've setup your IDE for groovy (as I'm working though that right now).
# Posted By Doug Hughes | 8/21/08 6:52 PM
I followed the directions here to create the project:

http://groovy.codehaus.org/Eclipse+Plugin

To run, I found that when I hit the run button, it gave me a prompt to pick form 3 options, groovy one of them. I'd pick groovy and hit OK or whatever.

I got it down quicker by clicking the 'down arrow' next to the Run button, then picking Groovy.

NOTE: I'm just doing simple scripts (for my learning, the other Groovy I'm doing is a bit more involved with JBoss).

Joe is the man for the real details.
# Posted By Raymond Camden | 8/21/08 6:58 PM