Panasonic Youth rob sanheim writes about software, business, ruby, music, stuff and things



Posted
7 March 2006 @ 11am

Tagged
Eclipse, Java, Usability

Discuss

java.awt.List - the Bane of IDE AutoCompletion

When I’m cruising in Eclipse, nothing disrupts flow like having to fix stupid import problems. FOr example, I type in a reference to List and try to autocorrect it:

autocompleting List

Oh! I wanted the standard collection type, not the AWT specific list! Here, Eclipse, let me tell you I need the the standard list type another five million times while I autocomplete my 56th for loop over a collection.

But I’m not bitter.

Is there some way to fix this, short of hacking my JDK to remove AWT, since I never use it? This is almost as bad as java.math.BigDecimal and com.ibm.math.BigDecimal when working under WSAD.


6 Comments

Posted by
Matt Lee
7 March 2006 @ 12pm


Posted by
Hugh Jass
7 March 2006 @ 1pm

Window->Preferences->Java->Appearance->Type Filters

Add java.awt.* to it and you’ll never see it again. I also have com.sun.* in my list.


Posted by
Rob
7 March 2006 @ 1pm

Well that was quick. Thanks for the tips. I actually went to look for a preference for this before posting, but I was looking in the wrong place - guess autocompletion and navigation doesn’t fall under “appearance” in my mind.


Posted by
Matt Lee
7 March 2006 @ 1pm

But it controls what “appears” in the type listing so it makes perfect sense (or at least i’m sure it did to the developer who put it there:)


Posted by
Tom
7 March 2006 @ 2pm

While configuration is an option here, what to do for the few that need awt? Or who don’t want to bother with configuration? Eclipse should automatically remember or figure out what should be at the top of the list. It has all the information it needs to do so. And it does similar tricks in other cases.


Posted by
Dan
8 March 2006 @ 7am

Tom - it sounds like Eclipse 3.2 is going to do what you want. Take a look at the new features on the latest milestones.


Leave a Comment

Bloglines Adds Drag and Drop, Finally Searching for the perfect in memory database