Overriding a method using the Hierarchy view
You can use the Hierarchy view to override a method:
- Open the type hierarchy for the type in which you want to add the overriding method. Note: It does not matter whether the subtypes, supertypes, or type hierarchy is displayed.
- In the list pane of the Hierarchy view, make sure that the Show All Inherited Members button is active in order to see all the inherited members. Note: The selection might not show all members if a filter (such as Hide Fields or Hide Static Members) is active.
- From the pop-up menu of one of the inherited methods, select Override in class name (where class name is the name of the class in which the method will be created).
![]()
![]()
Using the Hierarchy view
Extracting a method
Finding overridden methods
Opening a type hierarchy on a Java element
Renaming a method
![]()