Setting preferences for the EGL editor

To specify the EGL editor preferences, follow these steps:
  1. From the main menu, click Window > Preferences.
  2. From the navigation tree, expand EGL and click Editor.
  3. In the Preferences window, you can set or clear the following EGL editor settings:
    Show line numbers
    Displays the line numbers in the EGL file.
    Annotate errors in text
    Underlines errors in the source code, with a red line, and provides an error indicator in the vertical ruler (the left margin). The underlines and indicators are displayed when you save the file. You can hover over the underline or error indicator to see an error message.
    Annotate errors in overview ruler
    Shows a red error indicator in the overview ruler (that is, in the right margin of the editor) whenever an error is found in the source code. The indicators are displayed when you save the file. You can click the error indicator to go to the line that has the error, and you can hover over the error indicator to see the error message.
    Annotate errors as you type
    Causes the display of error indicators as you type, not only after you save the file. The specific indicators affected by this setting depend on two other settings:
    • If Annotate errors in text is set, the editor responds to a source-code error by underlining the error with a red line and by providing an error indicator in the vertical ruler (the left margin). You can hover over the underline or error indicator to see an error message.
    • If Annotate errors in overview ruler is set, the editor responds to a source-code error by showing a red error indicator in the overview ruler (that is, in the right margin). You can click the error indicator to go to the line that has the error, and you can hover over the error indicator to see the error message.
    Defer affected part compilation on change
    Causes the IDE to work in the deferred compilation mode, instead of the immediate compilation mode. The immediate compilation mode will keep all parts compiled at all the time, however significant build time can occur especially when frequently called top-level functions or records are changed. Under the deferred compilation mode, only the changed part is recompiled that causes the build time to be kept to a minimum. As affected parts are not immediately compiled in the deferred mode, an EGL Deferred Work view is created to show the changed top-level functions, records and data items, and all of the programs and libraries that are affected by this change. Within this EGL Deferred Work view, you can select and control what parts get recompiled and regenerated. Refer to the section on EGL Deferred Work view for more information.
    Warn when moving data to a smaller field
    Underlines warnings in the source code with a yellow line, and provides an warning indicator in the vertical ruler (the left margin) when a fixed length field is being moved to a field smaller in size. The underlines and indicators are displayed when you save the file. You can hover over the underline or warning indicator to see a warning message. In the case of text fields, this would be based on the field length. In the case of numeric fields, this would be based on either the number of significant digits or the number of decimal digits. As only a warning is produced, this will not affect the generation of the program, however this feature can help to identify when an unexpected truncation of data occurs.
    Enable auto activation
    Clear this check box to keep the content-assist popup from showing each time you type a period after a variable name or other symbol.

    Regardless of this setting, content assist is available to you when you press Ctrl-Shift in the EGL editor.

    Search EGLARs for details
    Instructs content assist to obtain function and variable descriptions from EGLARs, in addition to the descriptions from the local source in the environment.
    Show advanced hover details
    Displays extensive hover details when using the mouse-over function during an editor session for EGL source.
  4. Click Apply to save the changes and remain in the Preferences window. Click OK to save the changes and exit the window.
There are other pages with additional options for the EGL editor under the EGL page in the navigation tree. To set these options, see the following topics: