Prev | Next |
Coding Data Types
Different programming languages support different inbuilt data types. It is possible for you to manage and extend this set of inbuilt data types for a standard programming language, as well as define new programming languages for use within Enterprise Architect.
Access
Ribbon |
Settings > Reference Data > Settings > Coding Datatypes or Develop > Source Code > Options > Configure Code Engineering Datatypes |
Programming Language Datatype Options
Option |
Description |
See also |
---|---|---|
Product Name |
Click on the drop-down arrow and select the name of the programming language. |
|
Add Product |
Click on this button to display a prompt for the name of a new programming language. Type the name and click on the . |
|
Datatype |
Type the language-specific name of the datatype. |
|
Common Type |
Type the common (or generic) name of the datatype; for example, the Java Boolean datatype has a common datatype Boolean. |
|
New |
Click on this button to clear the fields to create a new datatype. |
|
Save |
Click on this button to save the newly created or updated datatype. |
|
Delete |
Click on this button to delete the selected datatype. You can delete your own custom data types, but you cannot delete any of the predefined data types. |
|
Defined Datatypes for Programming Languages |
Review the list of datatypes for the selected language, and click on any that you want to edit or delete. The details for the selected datatype display in the dialog fields. |
Notes
- You do not need to set the options in the 'Size' panel
- Once you have defined at least one datatype for a new language, that language name is added to the drop-down list for the 'Language' fields in the 'Programming Languages Datatypes' dialog, in the Code Template Editor, and in the 'Properties' dialog for each Class element within the model
- You can transport these data types between models, using the 'Settings > Model > Transfer > Export Reference Data' and 'Import Reference Data' ribbon options
- In the Corporate, Unified and Ultimate Editions of Enterprise Architect, if security is enabled you must have 'Configure Datatypes' permission to update and delete data types