Archive for March, 2009

More Flexible Toolwindow Layout in IntelliJ IDEA 8

Thursday, March 19th, 2009

A little-known new feature of IntelliJ IDEA 8.0 is that it allows you to have two docked toolwindows visible on each side of the screen. So you can, for example, view your changes and your TODO list at the same time at the bottom of IntelliJ IDEA window.
In order to configure this, you need to use drag & drop — for example, to view the TODO list in the right part of the bottom area, you should drop its button to the bottom right corner of the screen.
I have recorded a short screencast showing how this can be done:

IntelliJ IDEA Flex Support

Wednesday, March 18th, 2009

We’ve created a short live demo, showing some of IntelliJ IDEA Flex support features during the process of creating a simple Hello World with Flex from scratch. The demo explains how to create and configure a project, author the code and run your (probably first) Flex application. You can watch the demo online or download a zip archive. If you need more information about IntelliJ IDEA Flex support, see this feature page.

Generating Persistence Mappings from Database Schema

Wednesday, March 18th, 2009

With IntelliJ IDEA you can quickly generate persistence mappings from any database schema. This feature is not so easy to find, so here’s the tip:

HQL Console with Pure JPA Facets

Wednesday, March 18th, 2009

In IntelliJ IDEA HQL console can be used with pure JPA facets (as well as with Hibernate facets) to run JPAQL and HQL queries. All you need is Hibernate libraries and JDBC driver in a module classpath. If persistence.xml contains no Hibernate-specific database connection options, it should be mapped to an existing data source via JPA facet settings.

Tip: HQL console can also be used to generate DDL statements for JPA and Hibernate mappings via its Generate DDL command.

Update: If a Persistence Unit or Session Factory is mapped to a valid local Data Source there is no need to specify JDBC driver jars in a module classpath (Since 8.1.1).

Smart WebBeans Event Model Navigation in Maia

Wednesday, March 18th, 2009

WebBeans event producers raise events that are then delivered to event observers. IntelliJ IDEA analyzes producer event binding types and helps to navigate to related observers and vice versa.



This feature will be available to try when Maia EAP goes public.

Quick Class Hierarchy View Using UML

Tuesday, March 17th, 2009

IntelliJ IDEA 8.1.1 will support Show Class Hierarchy action that displays class hierarchy of a selected type. Just place the caret at any type in the code editor and press Ctrl+Alt+U.

Making Spring Autowired Dependencies Explicit

Tuesday, March 17th, 2009

Try invoking Make autowired dependencies explicit intention actions for beans or contexts that use autowire attribute.



IntelliJ IDEA will find all beans that can be autowired with current bean and generate appropriate properties with correct reference attribute.

ER-Diagram Structure Popup

Tuesday, March 17th, 2009

In IntelliJ IDEA you can quickly navigate within JPA/Hibernate ER-Diagram using the File Structure Popup (press Ctrl+F12, or invoke View menu, File Structure Popup command):

New Maven Resource Compiler

Tuesday, March 17th, 2009

IntelliJ IDEA now uses a special compiler to process Maven resources as specified in the pom file, with includes/excludes and filters.

Resource folders are not set as Source Folders anymore because they do not fit in the IntelliJ IDEA model.

To use the new functionality please either manually reset all your resource folders in the Project Structure dialog or re-import the project from scratch. Although you may skip this step, the native IntelliJ IDEA compiler will interfere with the Maven Compiler and copy unnecessary files or rewrite already processed ones from these folders.

Configure JSF Navigation Rules Without Typing

Tuesday, March 17th, 2009

With IntelliJ IDEA you can easily configure navigation rules in faces-config files without making a lot of tedious typing. Just open a faces configuration file, select the Navigation tab, and then drag pages from project tree and drop them to the graph.

Added pages can be linked with mouse — just draw a line from one page to another.