The Artima Developer Community
Sponsored Link

Java Buzz Forum
IDEA: How did they do that?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chris Winters

Posts: 931
Nickname: cwinters
Registered: Jul, 2003

Daytime: Java hacker; nighttime: Perl hacker; sleeptime: some of both.
IDEA: How did they do that? Posted: Jul 25, 2005 3:02 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Chris Winters.
Original Post: IDEA: How did they do that?
Feed Title: cwinters.com
Feed URL: http://www.cwinters.com/search/registrar.php?domain=jroller.com®istrar=sedopark
Feed Description: Chris Winters on Java, programming and technology, usually in that order.
Latest Java Buzz Posts
Latest Java Buzz Posts by Chris Winters
Latest Posts From cwinters.com

Advertisement

What the i18n popup looks like

Another example of the thoughtfulness of IDEA: while editing a class with a reference to a localized message I hit Ctrl-Shift-I (Quick Definition Lookup). I did this on a lark, just wondering what would happen -- typically this will popup inline the definition/declaration of the method you're calling, pretty useful. (You can even navigate to different implementations through the method hierarchy.)

Imagine my surprise when IDEA poped up the definition of the message -- it's like it read my mind!

Here's the kicker: I never told IDEA I was using localization. I didn't tell it the location of the message files and didn't put them on the classpath. Even more amazing, the msg object with this method is my own implementation of a Spring MessageSource, not even a subclass of the standard (and irritating) ResourceBundle.

Sure, the implementation may have been simple -- find all project files that look like they have localized messages, keep an index of the keys and when someone wants an implementation description try and match the quoted string against that index. But it's the smarts and forethought behind the implmentation that consistently makes this so easy to work with.

Read: IDEA: How did they do that?

Topic: Google PR PingPong Time Again Previous Topic   Next Topic Topic: Dr. Richard Stallman’s Tirade Against Harry Potter

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use