Extracting a Method Selected in a Methods List

You can extract a single method from a list (for example, after a references request of an entity) in the same way you can when you select a method in the Methods List of the Class Browser and then select the Extract command from the Methods menu.

To extract a single method selected in a methods list

  1. Select the method from a list of methods (for example, in the list showing the search results in the Global Find/Replace Results form).

  2. Select the Extract Method command from the Methods menu. The Extract dialog is then displayed, to enable you to select the options that you require. For details, see "Specifying Your Extract Options", in Chapter 10. The common Save As dialog is then displayed.

    The Extract Method command is disabled if the current method has been modified but not saved. Moving the cursor over the disabled command displays Not available - Method has been modified but not saved.

  3. Click the Browse button at the right of the Schema File Name text box and then specify Specify the name and location of your method file, as follows.

    • The file name is constructed as class‑name_method‑name.file‑suffix, defaulting to the name of the current type and method, with an .mth suffix (for example, when extracting the Customer class getAddress method, the default file name is Customer_getAddress.mth).

    • The file suffix is as defined in the Method text box of the File Suffixes group box on the Miscellaneous sheet of the Preferences dialog.

    • The directory to which the extracted method is saved defaults to your Jade working directory.

  4. Complete the Selective and Schema Options sheets on the Extract dialog, as required. For details about completing the Selective and Schema Options sheets, see "Specifying Selective Options" and "Specifying Your Schema Options", respectively, in Chapter 10.

2016.0.01 and higher

2022.0.01 and higher