1.Select Window > Preferences, and select the Java category. The general Java Preferences page opens.
2.Use the radio buttons that appear under When opening a Type Hierarchy to indicate your preference.
Opening a type hierarchy on a Java element
Opening a type hierarchy on the current text
selection
Opening a type hierarchy in the workbench
Opening a type hierarchy in its own perspective