IntelliJ IDEA 13.1.0 Web Help

11.0+

View | Tool Windows | Dependency Viewer

The Dependency Viewer tool window displays results of analyzing dependencies, backward and cyclic dependencies.

In this section:

Panes of the dependency viewer

The Dependency Viewer consists of the following panes:

  • Analyzed Code pane in the upper-left part of the tool window containing a tree view of your project's files and packages. Selecting a node (package or file), for which you want to find dependencies, populates the Parent Code pane.
  • Parent Code pane in the upper-right part of the tool window represents the classes your selection depends on. In addition to the other classes in project, these dependencies also include any classes in the libraries and test sources, if the corresponding view filter is enabled.
  • Usage pane in the lower-left part of the tool window is populated when you select an entry in the Parent Code pane.
    • For the dependencies analysis this pane contains the objects which your code is dependent on (that is, the code in the left pane uses them).
    • For the backward dependencies analysis, these are the objects that depend on your code (that is, they use something of the code in the left pane).
    • For the cyclic dependencies analysis this pane shows the objects which the analyzed code refers to and which, in turn, refer back to your code.

Analyzed code toolbar

Item Tooltip and Shortcut Description
close Close Click this button to close the current tab of the tool window.
rerun Rerun
Ctrl+F5Ctrl+F5Ctrl+5Ctrl+F5Ctrl+F5Ctrl+F5Ctrl+Alt+RCtrl+F5Ctrl+F5Command RControl F5Command R
Click this button to rerun the dependency analysis in the same tab.
flattenPackages Flatten Packages When the button is pressed, all packages display as a single-level tree view.
showFiles Show Files When the button is pressed, files display in the Analyzed Code and Parent Code panes. Otherwise, both panes display the packages only.
groupByModule Show Modules When the button is pressed, items in the tree view display under the corresponding module nodes. Otherwise, the project items display under their packages.

Tip

Grouping by modules enables you to show a package split among several modules.

showModuleGroups Show Module Groups When the button is pressed, the items in the tree are arranged by user defined module groups.
groupByScoupType Group By Scope Type When the button is pressed, the items in the tree are grouped by the type of scope, i.e. production, test or libraries.
commonfilter Show Illegals Only When the button is pressed, the pane shows only illegal and invalid dependencies.
markIllegal Mark Illegal Click this button to mark the selected dependency as illegal.
settings Edit Rules Click this button to open the Dependency Validation dialog and define the rules for dependencies analysis.

See Also

Concepts:

Procedures:

Reference:

Getting Started:

Web Resources: