IntelliJ IDEA 2017.1 Help

Dependency Viewer

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

ItemTooltip and ShortcutDescription
/help/img/idea/2017.1/close.png CloseClick this button to close the current tab of the tool window.
/help/img/idea/2017.1/rerun.png Rerun
Click this button to rerun the dependency analysis in the same tab.
/help/img/idea/2017.1/flattenPackages.png Flatten PackagesWhen the button is pressed, all packages display as a single-level tree view.
/help/img/idea/2017.1/showFiles.png Show FilesWhen the button is pressed, files display in the Analyzed Code and Parent Code panes. Otherwise, both panes display the packages only.
/help/img/idea/2017.1/groupByModule.png Show ModulesWhen the button is pressed, items in the tree view display under the corresponding module nodes. Otherwise, the project items display under their packages.
/help/img/idea/2017.1/showModuleGroups.png Show Module GroupsWhen the button is pressed, the items in the tree are arranged by user defined module groups.
/help/img/idea/2017.1/groupByScoupType.png Group By Scope TypeWhen the button is pressed, the items in the tree are grouped by the type of scope, i.e. production, test or libraries.
/help/img/idea/2017.1/commonfilter.png Show Illegals OnlyWhen the button is pressed, the pane shows only illegal and invalid dependencies.
/help/img/idea/2017.1/markIllegal.png Mark IllegalClick this button to mark the selected dependency as illegal.
/help/img/idea/2017.1/settings.png Edit RulesClick this button to open the Dependency Validation dialog and define the rules for dependencies analysis.

See Also

Last modified: 5 April 2017