How to Inspect Method Overrides in the DVT Eclipse IDE
Description
This video presents several DVT features which allow you to easily inspect and navigate object-oriented type hierarchies and method overrides.
Explore the design and verification tools: https://www.dvteclipse.com
Or request a license: https://www.dvteclipse.com/request-license
Transcript
DVT provides several features which allow you to easily inspect and navigate object-oriented type hierarchies and method overrides.
Inspecting Class Hierarchies
Place the mouse cursor on a class or interface class and press Ctrl+T, or right-click and select Show > Quick Type Hierarchy View to quickly inspect the class hierarchy.
Press Escape to dismiss the view.
Understanding Function Override Indicators
- A green triangle to the left side of a function indicates that it is a virtual function override. Hover to see more details. Click to go to the overridden function declaration.
- A white triangle indicates a pure virtual function override.
- A yellow triangle indicates that a non-virtual function with the same name is defined in a parent class.
The same conventions are used in views, for example, Types, Type Hierarchy, or Outline.
Navigating Virtual Function Overrides
You can also use hyperlinks to navigate the virtual function overrides across a hierarchy of classes.
Hover the function name with the mouse cursor while holding down the Ctrl key and select Open Super Implementation or Open Child Implementation.
If the function has several child implementations, the Quick Type Hierarchy pops up and allows you to pick the class you want to navigate to.
Only classes with colored icons contain an override of the function.
Click or use arrow keys and Enter to navigate the function override.
Using the Layers View
Place the editor cursor on a function and press Shift+F3, or right-click and select Show Layers.
The Layers view presents a flat list containing all definitions and overrides of the function across the entire class hierarchy.