Qualify imports

The qualify imports tool can be used to reformat .4gl source modules to automatically add module prefixes to all imported symbols that are not yet qualified.

The qualify imports tool is provided as part of the fglcomp compilation tool. Genero Studio provides an interface to the compilation tool through the use of menu options and preference settings. In order to gain a thorough understanding of the qualify imports tool, it is recommended that you review the IMPORT FGL module topic in the Genero Business Development Language User Guide.

When in Code Editor

When editing a file in Code Editor, select Edit > Qualify imports. Module prefixes appear on all imported symbols that are not yet qualified in the open document.

From the File Browser

You can format and indent one or more files from the File Browser (the Files view).
  1. Select one or more files. To select multiple files, hold the CTRL key.
  2. Right-click to open the context menu.
  3. Select Qualify imports.

The selected files are processed and module prefixes are added to all imported symbols that are not yet qualified. For files currently open in Code Editor, it updates the opened files. For files that are not opened, it updates the files on disk.

From Project Manager

You can format and indent one or more files or for all files within a group.
  1. Select one or more files and/or groups.
  2. Right-click to open the context menu.
  3. Select Refactor 4GL Files > Qualify imports.
  4. A warning appears. Answer Yes to format and indent all files.

The selected files are processed and module prefixes are added to all imported symbols that are not yet qualified. For files currently open in Code Editor, it updates the opened files. For files that are not opened, it updates the files on disk.