(view image: 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.
Posted from cwinters.com; read original