Editing a resource associations part in an EGL build file

Use resource associations parts to relate a logical file name to a system resource name that is on the platform where the generated code is deployed.
To edit a resource associations part, follow these steps:
  1. Locate the EGL build file you want to work with in the Project Explorer view. To find it, open the EGL Source folder, and look for a file with the extension EGLBLD. Right-click on the build file to open the pop-up menu.
  2. In the pop-up menu, select Open With > EGL Build Parts Editor. The Build Parts Editor opens the Build Descriptor part automatically; the default view is the General Options view.
  3. If you have the Outline view open, you will see the build parts listed under the name of your build file. If you do not have the Outline view open and want to open it, select Window > Show View > Other; in the Show View dialog box, click to expand General and select Outline.
  4. In the Outline view, right-click a resource associations part and click Open. The editor displays the current part definition.
  5. To add a new Association element to the part, click Add Association or press the Insert key, and type the logical file name. The logical file name must match one of the following:
    • The fileName property for a serial, indexed, or relative record.
    • The queueName property for an WebSphere® MQ (formerly MQSeries®) record
    • printer, if you want to define how print forms are to be implemented.
  6. To create an entry to specify how your logical file is to be implemented for a particular target system, select the row in the Association elements list that corresponds to your logical file name, then click Add System. To select your target system, you can perform one of the following actions:
    • Select the corresponding row in the Association elements list, then click the name once to put the field into edit mode. Select the new system name from the System drop-down list.
    • In the Properties of selected system entries list, click the system property once to put the Value field associated with that property into edit mode. Select the new system name from the Value drop-down list.
  7. To change the default file type associated with your logical file name, you can either:
    • Select the row in the Association elements list that corresponds to your logical file name, then click the name once to put the field into edit mode. Select the new file type from the File Type drop-down list.
    • Select the row in the Association elements list that corresponds to your logical file name. In the Properties of selected system entries list, click the fileType property once to put the Value field associated with that property into edit mode. Select the file type from the Value drop-down list.
  8. Modify the resource associations as needed.
    • To associate more than one system and set of related properties with a logical file name, select the row in the Association elements list that corresponds to your logical file name. At the bottom of the Association elements list, click Add System. The added row is now selected and available for editing.
    • To remove a system and related properties from an associated logical file name, select the row in the Association elements list that corresponds to the system you want to remove for your logical file name. At the bottom of the Association elements list, click Remove or press the Delete key.
    • To remove a logical file name and all associated systems, select the row in the Association elements list that corresponds to your logical file name. At the bottom of the Association elements list, click Remove or press the Delete key.

Feedback