Creating an EGL source file

The creation process is essentially the same for most EGL source files.

Before you can perform this task you must create an EGL project or a folder to contain the source file to be created.
To create a source file that contains an EGL part, do as follows:
  1. Specify a project or folder when you create an EGL source file. You can do this in one of two ways:
    • Right-click the name of a project or folder in your workspace, and click New > Other.
    • With a project or folder selected in your workspace, click File > New > Other.
    The Select a wizard window opens.
  2. In the Select a wizard window, expand EGL, and select the type that you want to create. Available types are as follows:
    • External type
    • Handler
    • Interface
    • Library
    • Program
    • Record
    • Service
    • Source File (generic wizard for EGL source files)
  3. Click Next. EGL displays a new type wizard. In the Source folder field, EGL shows the project or folder that you previously selected.
  4. If you chose the wrong name initially, you can change this name to that of another existing project or folder.
  5. In the Package field, select a package to hold the new file. If the package name you enter here does not exist, EGL creates it for you. To ensure that you use the correct name of an existing package, click Browse and locate the package name.
  6. In the Name field, type a name for the new file. The file name must be same as the part name. For example, assume your file will define a program named checkCustomerBalance:
    Program checkCustomerBalance type BasicProgram
      ...
    end

    In this case you must name the file checkCustomerBalance. EGL will add the .egl extension to file name automatically.

    File names that contain EGL parts must conform to EGL part naming conventions. For more information, see "Naming conventions."

  7. Some wizards require further information.
  8. Click Finish.