DSM Tool Window
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.
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.
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-coremodule has many (more than 99) dependencies on
The column shows the dependencies of the selected row.
The row shows the dependencies on the selected row.
This means that the
maven-projectmodule has 16 dependencies on
Various shades correspond to the number of dependencies.
Color annotations help to visualize row dependencies at a glance.
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.
The cell #1 was selected. These color annotations mean that
maven-project has 16 dependencies on
maven-settings. The symmetrical cell (cell #2) shows dependencies in the other direction - in this case zero.
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.
Mutual dependencies are shown in red. It means that the plugin and usability packages are both dependent on each other.
There are two types of visual patterns. Vertical lines represent aggregators.
Horizontal lines appear in lowest-level or utility functionality.