Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Add Code Modules
When creating an MDG Technology file, you can include code modules.
To use the code modules section of the MDG Technology Types Wizard
Step |
Description |
See also |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 |
Follow the steps in the Create MDG Technologies topic up to and including Step 6, where you select the Code Modules checkbox. The MDG Technology Wizard - Code Modules dialog displays.
|
|||||||||||||||||||||
2 |
Click on the checkboxes (Product, Data Types, and Code Templates) for each of the required Code Modules. The code modules listed are those defined in your current project. These could be the Enterprise Architect default languages, or those you have defined yourself using code templates and the Code Template Editor. Before you can set up a code template for the new language in the editor, you must define at least one data type for the language. Once the MDG Technology file is created it can be loaded into your current model and into other models.
|
|||||||||||||||||||||
3 |
To select any code options for a module, click on the ( ... ) button in the Code Options column for that module. This enables you to select an XML document that provides additional settings for the language that are not covered by the data types or code templates. The supported code options are as follows:
An example of a valid code options file is shown below. <CodeOptions> <CodeOption name="DefaultExtension">.ext</CodeOption> <CodeOption name="Editor">C:\Windows\notepad.exe</CodeOption> </CodeOptions>
|
|
||||||||||||||||||||
4 |
Click on the Next button to proceed. You can edit the code option values for source code engineering and for each required language using the appropriate Language Options page of the Options dialog.
|