Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Create Custom Language Template

Enterprise Architect can forward generate code for languages that it does not specifically support, if the appropriate code generation templates are defined for that language. This topic outlines the steps required to define templates for custom languages.

How to

To define a template for a custom language

Step

Description

See also

1

Create the custom language as a new product:

Select the Settings | Code Datatypes menu option; the Programming Languages Datatypes dialog displays
In the Product Name field type the name of the new language, and in the Datatype field type a datatype (one is enough to declare that the new language exists)

 

 

 

Data Types

2

Select the Settings | Code Generation Templates menu option.

The Code Templates Editor view displays.

 

 

3

In the Language field, click on the drop-down arrow and select the custom language.

 

 

4

From the Templates list, select one of the base templates.

 

 

5

Define the template using the Code Templates Editor.

 

 

6

Click on the Save button to store the template in the .EAP file.

 

 

7

Repeat steps 1 to 6 for each of the relevant base templates for the custom language.

 

 

Notes

The File template must be defined for the custom language; the File template can then see the Import Section, Namespace and Class templates