Archive for April 8th, 2009

Quick and Consistent Renaming of JBoss Seam Components

Wednesday, April 8th, 2009

JBoss Seam components can be referenced from JSP/JSF pages, Seam components.xml, page flow configuration files, string literals anywhere else, etc. What it takes if you want to rename one of them? With IntelliJ IDEA, only a simple press of Shift+F6 to invoke the Rename refactoring:



The component and all references to it will be consistently renamed.

Generating Bean Properties in Spring Contexts

Wednesday, April 8th, 2009

With IntelliJ IDEA you can easily generate multiple properties in your Spring application contexts. Just invoke Generate action by pressing Alt+Insert inside of a bean tag and select properties you want to generate.



IntelliJ IDEA analyzes property types and invokes an appropriate Live Template for each of the properties you selected.

Something More About Generics Folding

Wednesday, April 8th, 2009

Looking back at constructor type parameters folding, you may wonder why don’t we fold another verbose construct with generics — method type parameters like this:

fillMap(Collections.<String, List<Integer>>emptyMap());

In Maia, we will: