Java News from Tuesday, August 17, 2004

THe Eclipse Project has posted the first milestone of Eclipse 3.1, an open source integrated development environment (IDE) for Java. It also doubles as a base platform for your own applications, an alternative to the AWT and Swing, and a powerful floor wax and dessert topping. The main new features in 3.1 are Ant 1.6.2, quick fixes for serial version IDs, and some (still incomplete) support for Java 1.5.

Speaking of Eclipse, Eclipse 3.0 has recently started auto-hiding content on me. For instance, if I click ClassName.getSomething() in the Package Explorer, it only shows me that one method. The rest of the class is hidden and very hard to get back. Furthermore, sometimes when I do have the entire file displayed, and use an autofix, Eclipse promptly hides all of the class except the method I'm editing. This is very annoying. Does anyone know how to turn this behavior off? Barring that, is there a way to tell Eclipse to restore the complete class short of closing and reopening the file? There doesn't seem to be any pop-up menu item or button that does this as far as I can see. If you know how to fix this bug, please drop me a line.

Update: the probelm is solved. Thanks to everyone who wrote in. First response was Kevin Klinemeier, who noted,

The feature you're seeing is turned off by clicking on the button that looks like an 8.5x11 sheet of paper with a notecard next to it. The tooltip reads "Show Source of Selected Element Only". For me, it's the right-most button, which is wrapped onto a second line.

If you have trouble finding it, you may have removed it. Right-click your toolbar and choose to customize it. Look for this button under the "Commands" tab, in the "Editor Presentation" command group.

By the number of people who responded I'm not the only person to get caught by this. A few even sent screen shots to point out the button I had to press. This one's courtesy of Jeff Duska. The icon (a little page) has no apparent relationship to what it does. Oh wait, I get it. It's supposed to be a view (sliding window or peephole) on a page. I'm not sure a feature like this really deserves to be hidden on a toolbar, and there really does need to be an item in the context menu for "Show everything."