Editing in Workbench for Eclipse
The family of Workbench Editors is language-aware, Eclipse-based editors for browsing and editing sources. The editors provide search functionality, colorization for language syntax, an outline view to assist navigation through the code, and other functionality that is customized via preference settings.
The appropriate editor launches based on the file association for a given file extension as follows:
- Workbench-COBOL-editor is used for extensions such as .cob, .cbl, and .cobol.
- Workbench-PL-I-editor is used for extensions such as .pli and .pl1.
To change the default editor
A two-step process is used to change the default editor to be used when opening z/OS datasets and members with Host Explorer or in a BMC mainframe project. The first step is to ensure that the z/OS dataset and member name patterns (such as *.cobol.*) are mapped to a file extension (such as *.cbl). The second is to associate that file extension (*.cbl) with the -supported editor with which it should be opened (such as the Workbench COBOL Editor). Refer to z/OS Dataset Extension Mappings and Associating a File Extension to an Editor for instructions on changing the default editor.
To search for text
The Workbench Editors provide context menu options for searching within a workspace, project, file, or working set. Refer to the Eclipse documentation for information on this search functionality.
Default typing mode
You can select the default typing mode for Workbench Editors. The typing mode applies to all Workbench editors. After you have opened an Editor, press the Insert key to switch between the typing modes.
To select a default typing mode
- Navigate to Window > Preferences.
- In the Preferences dialog box, select BMC > Editors.
- In the Default typing mode area of the Editors section, select one of the following options:
- (Default) Insert
- Overwrite
- Click Apply.
Alternatively, click Apply and Close to apply your selection and close the Preferences dialog box.