Enterprise Developer comes with the following functionality for editing BMS files:
To edit a BMS file inside Eclipse:
This opens the BMS text editor in the middle pane.
The BMS code area is between columns 1 and 71. The name of the BMS screen occupies the first seven characters (columns one to seven). This is followed by a space and the macro name starting in column nine, and then the macro attributes starting in column 16. Longer lines are shown on the next line and a continuation character, X, appears in column 72. Any text beyond column 72 is treated as a comment.
Eclipse provides an initial syntax checking and error reporting on background parse inside the text editor. Syntax checking is limited and only shows some of the errors. You need to compile the BMS source for the compiler to process and display all errors.
If syntax checking find an error in the code, Eclipse displays an error or a warning icon in the left-hand side of the editor on the line where the problem occurred. Hover the icon to view the exact error message.
To preview the BMS screens in Eclipse:
This starts the BMS Preview view with the screen you are editing:
With this option, the BMS Preview view displays an indicator in front of the fields in the BMS screen.
To enable Smart Edit Mode:
Alternatively:
With Smart Edit Mode enabled:
In the same scenario, if you do not end the line with a comma and you press Enter, this creates a new line and moves the cursor to the beginning of it.
To enable the Smart Tabs:
Alternatively:
With Smart Tab enabled, pressing Tab in the editor moves the cursor at the start of the main sections in the code area - column 9 for the start of macro names, column 16 for the start of the macro attributes, and column 72, at the end of the code area.
To enable smart Home/End caret support:
Alternatively:
With smart Home/End caret enabled:
The tree structure shows the BMS mapsets, maps and any attributes with their properties as tree nodes: