Switching editors

You can switch from one editor to another while a file is open in an edit session.

In the System z LPEX Editor

Procedure

In the editor view, select Open With > editor name. The list of available editors depends on the file type and the editors that are associated with the file type. For information about associating an editor with a file type, see Associating editors with file types.

Results

  • If the original editor has unsaved changes, you are prompted to save the changes:
    • To save the changes, close the original editor, and open the target editor, click Yes. The target editor opens and selects and shows the same text that was selected in the original editor.
    • To discard the changes, close the original editor, and open the target editor, click No. The target editor opens and selects and shows the same text that was selected in the original editor.
    • To do nothing, click Cancel. The file remains open in the original editor. The target editor does not open.
  • If the original editor has no unsaved changes, then the original editor is closed and the new editor opens and selects and shows the same text that was selected in the original editor.

In the C++, COBOL, Compare, JCL, and PL/I Editors

Procedure

In the editor view, select Open With > editor name. The list of available editors depends on the file type and the editors that are associated with the file type. For information about associating an editor with a file type, see Associating editors with file types.

Results

The result of this action depends on the target editor:
  • If the target editor is another Eclipse-based editor, then the target editor opens and selects and shows the same text that was selected in the original editor. The original editor remains open.
  • If the target editor is the System z® LPEX Editor, Remote Systems LPEX Editor, or base LPEX Editor, then the result depends on the status of the open file:
    • If the original editor has unsaved changes, you are prompted to save the changes:
      • To save the changes, close the original editor, and open the target editor, click Yes. The target editor opens and selects and shows the same text that was selected in the original editor.
      • To discard the changes, close the original editor, and open the target editor, click No. The target editor opens and selects and shows the same text that was selected in the original editor.
      • To do nothing, click Cancel. The file remains open in the original editor. The target editor does not open.
    • If the original editor has no unsaved changes, then the original editor is closed and the new editor opens and selects and shows the same text that was selected in the original editor.

Feedback