The Source Code entity

With this entity, you can generate a source code different from the COBOL code. Its instances must reference a generic Skeleton (ALL type) that contains the basic structure of their code. You can generate a Source Code. After the generation, you can modify the generated code.

You generate a Source Code by right-clicking the instance in the Design Explorer view and selecting Generate > Generate Source Code. The generation produces a file under the instance. Its extension is the extension that is indicated in the Source Code generated file extension field of the referenced Skeleton. If this field does not contain any value, the extension is the Skeleton name.

By default, the generated code opens in the Eclipse editor that is associated with the extension of the generated file. However, to modify the code, you must open it in the PDP Source Code editor. To do so, right-click the generated file and select Open with > PDP Source Code Editor. Some preferences are associated with this editor. You can access them by selecting Window > Preferences > Pattern Driven Programming > Source Code Editor.

You will then have access to the Design and the Generated Code Structure views where you can see, modify, restore, and generate the code again more easily.
Note: In this version, the Design view is empty.
You can modify the generated code by completing one of the following actions:

Feedback