Growing to love Eclipse

Uh, wow.

I’ve been working with Eclipse over the last few days as I seem to be writing quite a lot more Java, and hacking on other people’s Java.

It’s an absolute pig to get working right, compared to the joy and simplicity of a text editor. But once you’re over that initial culture shock (what, you mean only half of my screen is actual editing space?!), it really starts to pay off.

I’ve been trying to track down an annoying problem with Ant not liking JUnit, and it turns out there’s a better way to do unit testing in Eclipse:

You should be able to run any of the JUnit tests in Eclipse by right-clicking on them and going to Run → JUnit Test.

Yeah, that’s really nice. And works fantastically well.

And while we’re at it, how about this?

Another useful Eclipse trick is to use abbreviated package names. [...] its nice on projects where you’re inflicted with super.long.package.name.syndrome. Go to Window → Preferences → Java → Appearance. Check the “Compress all package names” checkbox and type “1.” (no quotes) in the text field.

o.a.c.c.treeprocessor is way easier to read than org.apache.cocoon.components.treeprocessor. Fantastic!

Both of these tips came from this excellent blog, specifically tihs article on setting up a project in Eclipse.

Related posts:

  1. Eclipse, Cocoon, Ant
  2. Cocoon and Eclipse
  3. More link chasing!
  4. Diary of a switcher #8
  5. They are here!
This entry was posted in Work. Bookmark the permalink.