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 . 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 . Some preferences are associated with this editor. You can access them by selecting .
- Insert specific code directly.
- Call a Static Micropattern to insert code at the end of a tag or at the insertion location. You can then describe a micropattern that will be taken into account upon the next generations. You can parameterize the values of its fields. You add this Static Micropattern from the Snippets view, category .
- Create micropatterns with the dedicated Java™ API and call them in the generated code.