GoLand 2018.2 Help

Hierarchy Tool Window

View | Tool Windows | Hierarchy
Alt+8

Use the Hierarchy tool window to analyze and navigate through hierarchies of types.

You can update the previously built hierarchy by clicking the Refresh icon (icons actions refresh svg) in the Hierarchy tool window. Alternatively, the results are updated when you run the next hierarchy command (unless you pinned (icons general pin tab svg) the tab with one of the previously built hierarchies).

Toolbar buttons

ItemDescriptionAvailable In
icons hierarchy supertypes svg Depending on the hierarchy type:
  • Type hierarchies: Shows the hierarchy of each supertype of the current type.
  • Call hierarchies: Shows the callers of the selected method.
All hierarchies
icons hierarchy subtypes svg Depending on the hierarchy type:
  • Type hierarchies: Shows all types that extend the selected type.
  • Call hierarchies: Shows the callees of the selected method.
All hierarchies
icons objectBrowser sorted svgSorts all elements within a tree alphabetically.Type hierarchies
ScopeUse this drop-down list to limit the scope of the current hierarchy:
  • Project: Traces usages of the method across the project.
  • Test: Traces usages of the method across the test types.
  • All: Traces usages of the method across the project and the libraries.
  • This type: Limits the scope to the current type.

In addition to the preconfigured scopes, you can define your own one. To define a scope, select Configure from the drop-down list, and define the required scope in the Scopes dialog box.

Call hierarchies
icons gutter implementingMethodSearches for calls of the selected method in all structures that implement this interface method. By default, you see a list of calls for the selected method only in the current structure.Call hierarchies
icons actions refresh svgShows all updated types or type structures.All hierarchies
icons general autoscrollToSourceMoves to a file and a section in a source code that corresponds to the selected node in the hierarchy tree.All hierarchies
icons.actions.expandall.svg.pngExpands all nodes of the hierarchy tree.All hierarchies
Pin buttonLocks the current tab from closing and reusing. Results of the next command are displayed in a new tab. All hierarchies
icons.toolbarDecorator.export.svg.pngExports a hierarchy into a text file. You can specify a location for this file.All hierarchies
icons.actions.close.pngCloses the selected tab.All hierarchies
Last modified: 27 August 2018