The Browse menu enables you to select and display the methods that are not referenced by any other method in the current schema. You can specify the display of unreferenced methods by performing one of the following actions.
Type of methods (that is, external methods, JADE methods, or all methods)
Methods provided by the selected class and optionally its subclasses, superclasses, or for all classes
Methods provided by the selected schema and optionally its subschema, superschemas, or for all schemas
To specify the unreferenced methods that you want to view
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.
Select the Unreferenced Methods command from the Browse menu. The Unreferenced Methods dialog, shown in the following diagram, is then displayed, to enable you to specify the unreferenced methods that you want to view.
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.
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 |
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 diagram, is then displayed.
Use the Unreferenced Methods Browser to view the unreferenced methods that match your specified search options. A method is considered referenced when:
It is an event method
It is used as the
The method name is initialize, finalize, or eventTimer
The method is directly referenced by another method
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.
To view the logic for a method
Select the required method in the method list.
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.