IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.
11.0+

View | Tool Windows | DSM

Tip

  • This tool window becomes available after performing DSM analysis.
  • Make sure that DSM Analysis plugin is installed and enabled. Refer to the Plugins page of the Settings dialog.

Here you can see the typical matrix view.

dsmView

The row headers represent program structure. Everything is collapsed now and only modules are shown. When expanded, the header is tree-like, allowing you to expand modules and dig into program packages. * - node groups classes inside the package. The column headers are the same as the corresponding row headers. Thus they are not shown in order to save space. Instead, different visual aids are used on the row headers.

If you select a row, the matrix will look like this.

dsmView2

Here you can learn the following:

  • The selected row and corresponding column are highlighted to visualize row dependencies.
  • The ellipsis in the cell means that the maven-core module has many (more than 99) dependencies on maven-project module.
  • The column shows the dependencies of the selected row.
  • The row shows the dependencies on the selected row.
  • This means that the maven-project module has 16 dependencies on maven-settings module.
  • Various shades correspond to the number of dependencies.

dsmView3

  • Color annotations help to visualize row dependencies at a glance.
  • maven-core depends on maven-project.
  • maven-project depends on maven-profile.
  • The dashes on the diagonal correspond to self dependencies which are not shown.

You can select any cell to explore the dependencies indicated in it.

dsmView4

The cell #1 was selected. These color annotations mean that maven-project has 16 dependencies onmaven-settings. The symmetrical cell (cell #2) shows dependencies in the other direction - in this case zero.

Note

There is a simple mnemonic rule - all dependencies always flow from Green to Yellow.

Instead of alphabetically sorting rows, DSM view sorts dependencies in a special way: classes, which are used most are moved to the bottom. In a project with good structure this creates a triangular shape in the lower left half of the matrix.

Cycles

dsmCycles

Mutual dependencies are shown in red. It means that the plugin and usability packages are both dependent on each other.

Patterns

There are two types of visual patterns. Vertical lines represent aggregators.

patterns1

Horizontal lines appear in lowest-level or utility functionality.

patterns2

See Also

Concepts:

Procedures:

Getting Started:

Web Resources: