MPS 2017.2 Help

Hierarchy Tool Window

View | Tool Windows | Hierarchy

Use this tool window to analyze and navigate through hierarchies of classes .

The contents of the tool window are not automatically updated as you navigate through the source code or switch between the editor tabs. The tool window shows the results of the latest hierarchy command and is updated when you run the next hierarchy command, unless the tab with one of the previously built hierarchies is pinned .

Toolbar buttons

ItemDescriptionAvailable In
/help/img/idea/2017.2/hierarchyClassButton.pngWhen this button is pressed, the hierarchical tree shows both the parent and child classes of the selected class, which is marked with an arrow /help/img/idea/2017.2/hierarchyClassArrow.gif in the tree of results. Class hierarchies
/help/img/idea/2017.2/hierarchyClassSubtypes.gifClass hierarchies
Call hierarchies
/help/img/idea/2017.2/hierarchyClassSupertypes.gifClass hierarchies
Call hierarchies
/help/img/idea/2017.2/sortAlphabetically.pngWhen this button is pressed, the elements within a tree are sorted alphabetically.All hierarchies
ScopeUse this drop-down list to limit the scope of the current hierarchy:
  • Project - MPS traces usages of the method across the project.
  • Test - MPS traces usages of the method across the test classes.
  • All - MPS traces usages of the method across the project and the libraries.
  • This class - the scope is limited to the current class.

In addition to the pre-configured scopes, you can define your own one: select Configure from the drop-down list, and define the required scope in the Scopes dialog box that opens.

Call hierarchies

In a method hierarchy, the tree-views of the following classes are available:

  • /help/img/idea/2017.2/new.png - where this method is defined.
  • /help/img/idea/2017.2/delete.png - where this method is not defined, but defined in the superclass.
  • /help/img/idea/2017.2/exclamationMark.png - where this method should be defined, because the class is not abstract.
/help/img/idea/2017.2/refresh.pngIf you made any changes of the classes or the class structure, they become visible in the Hierarchy tool window only after you press this button.All hierarchies
/help/img/idea/2017.2/autoScrollToSource.pngToggle the Autoscroll to source mode. When the button is pressed, every time the node is focused, the corresponding line of source code is highlighted in the editor.All hierarchies
pin.pngWhen this button is pressed, the current tab will not be overwritten; instead, the results of the next command will be displayed in a new tab. All hierarchies
/help/img/idea/2017.2/exportToTextFile.pngClick this button to export a hierarchy into a text file in the specified location.All hierarchies
/help/img/idea/2017.2/close.pngClick this button to close the selected tab of results.All hierarchies
/help/img/idea/2017.2/icon_help.pngClick this button to show reference page.All hierarchies
Last modified: 26 October 2017

See Also