Overriding a Method

You can override a method in the workbench.

1.

Open the type hierarchy for the type in which you want to add (i.e. override) the method.

See Opening a Type Hierarchy on a Java Element

Note: It does not matter whether the subtypes, supertypes, or type hierarchy is displayed.

2.

Ensure that the Show All Inherited Members option is turned on (i.e., the button is pressed) in the list pane in the Hierarchy view in order to see all the inherited members.

Note: The selection might not show all members if a filter is active.

3.

From the context menu of one of the inherited methods, select Create in <class name> (where <class name> is the name of the class in which the method will be created).