Reusing the Form Displaying Method Source

You can specify whether you want to reuse the same form to display the source of a method, when possible, rather than creating a new form for each such request. The option to reuse the same method source window is used when:

To reuse the same form to display method source, perform one of the following actions

When you have specified that you want to reuse the same form to display method source and you press F12 in the editor pane, JADE initially creates a new form to display the method source, and a list box that displays the history of how you got to that form. Each subsequent request to show another method uses the same window and adds the additional navigational history to the list box, as shown in the following example.

Click on an entry in the list box to display the method source for that entry, unless the currently displayed method has been changed, in which case the Save Method message box prompts you to save and compile your changes, to discard them, or continue editing the method. Conversely, if the method source in a shared window has been changed, when the new method source request is made, a message box is displayed informing you that the window cannot be shared (until the changes are saved or restored), and asking whether you want a new method source window to be opened. You can then cancel the request or click OK to open another window.

If the current method has been changed and you press F12, the development environment prompts you to save and compile your changes, to discard them, or to continue editing the method before the new method source window is displayed. This avoids two changed separate copies of the same method being open, with potentially different sources, leading to confusing results when moving from form to form.

If you close a form that is displayed in the method source browsing history list box, that entry is removed from the list box when the form is next activated. Similarly, if a method that is displayed in the method source browsing history list box is deleted, that entry is removed from the list box.

The method source browsing history list box entries are updated to use the current form caption when the form is activated.

The History List can contain both versioned and non‑versioned methods. The appropriate title and skin are displayed when each method is made current.

Only the currently selected method is restored after your work session is closed and then restarted and the option to restore windows is enabled. (The history is not restored.)

You can open a method source in a separate window that can be floated without first unchecking the Reuse Same Method Source Window For All check box preference, by double‑clicking a method entry while holding down the Shift key in the:

If there are no methods left in the History List, the Reused Method Source form is closed. In addition, the Methods menu Remove from List command is enabled for the Reuse Method Source window when a method entry is selected in the History List. Clicking that command removes the selected method from the History List. If there are no methods left in the History List, the Reused Method Source form is closed.

To reuse the same method source form for each browser origin, perform one of the following actions

This results in one History List of the Reused Method Source form for each browser origin; for example, pressing F11 on a method name in a method in the editor pane opens an extended source window that is populated only with actions in the original browser or in the displayed extended source window (the History List of the Reused Method Source form). Performing actions that cause use of a source window in another browser opens a new extended source window rather than using any other open source window not initiated by that browser.

If the Reuse Same Method Source Window For Each Origin value is checked and the method about to be displayed is open in another window and has been modified, the Reuse Same Method Source Window For Each Origin option is ignored and that window will be opened instead.

Clicking the form entry in the methods list in the History List of the Reused Method Source form returns you to the originating form. (As the original method can be modified, displaying another copy of the method source is not desirable.)

2016.0.01 and higher