Displaying Unreferenced Methods

The Browse menu enables you to select and display the methods that are not referenced by any other method in the current schema or in other schemas. You can specify the display of unreferenced methods by performing one of the following actions.

A method is considered unreferenced according to the following criteria.

To specify the unreferenced methods that you want to view

  1. From the browser, select the class or superclass whose unreferenced methods you want to view if you do not want to view the unreferenced methods of all classes.

  2. Select the Unreferenced Methods command from the Browse menu.

    The Unreferenced Methods dialog, shown in the following image, is then displayed, to enable you to specify the unreferenced methods that you want to view.

  3. In the Select View group box, select the type of unreferenced methods that you want to view. By default, only unreferenced JADE methods are displayed.

  4. Use the options in the Restrict Search To group box to select the classes and schemas to which you want to restrict the search for unreferenced methods if you do not want to display only the unreferenced methods of the current class in the current schema and its superschemas.

    The search is context-dependent. For example, if the selected schema has no subschemas, the Current Schema And Subschemas option button is disabled.

    When the Class Browser or Primitive Types Browser has focus, the search is performed only on the selected class in the current schema and its superschemas by default (that is, the Selected Class Only option button and the Current Schema And Superschemas option button are selected).

    Conversely, when the Schema Browser has focus, options that are not valid are disabled and the All Classes and Current Schema And Superschemas option buttons are selected by default.

    If you want to restrict the search for unreferenced methods to another option, the values that are you can select are listed in the following table, to enable you to select the appropriate option.

    Class Restriction Options Schema Restriction Options
    Selected Class Only (Class or Primitive Types Browser default value) Current Schema Only
    Selected Class And Subclasses Current Schema and Subschemas
    Selected Class And Superclasses Current Schema and Superschemas (default value)
    All Classes (Schema Browser default value) All Schemas
  5. Click the OK button. Alternatively, click the Cancel button to abandon your selections.

When the search is complete, the Unreferenced Methods Browser, shown in the following image, is then displayed.

Use the Unreferenced Methods Browser to view the unreferenced methods that match your specified search options. The method list displays all selected unreferenced methods in alphabetical order by class. User-defined methods are displayed in black and methods defined in superschemas are displayed in blue.

For details about highlighting a method in the methods list (for example, as a reminder that more work on that method is required), see "Highlighting Methods in Lists of Methods".

You can extract a single method selected in the methods list at the top of the Unreferenced Methods Browser. For details, see "Extracting a Method Selected in a Methods List", later in this chapter.

To view the logic for a method

The logic for the selected method is then displayed in the editor pane. You can modify and compile user-defined methods but you cannot modify system methods.