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 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. 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.

2016.0.01 and higher