Java Options

If you intend to generate Java code from your model, you can configure the code generation options using the Java Specifications page of the Options dialog to:

Set a default directory for opening and saving Java source code
Indicate a default file extension
Specify a default 'Get' prefix
Specify a default 'Set' prefix
Define additional Collection Classes - to define custom collection classes, which can be simple substitutions (such as CArray<#TYPE#>) or a mix of other strings and substitutions (such as Cmap<CString,LPCTSTR,#TYPE#*,#TYPE#*>); the following collection classes are defined by default:
HashSet<#TYPE#>;Map<String,#TYPE#>;

Access     Tools | Options | Source Code Engineering | Java

Options

Field

Action

See also

Disable Language

Leave this checkbox unselected to support Java code generation.

Select this checkbox to disable Java code support.

 

 

Options for the current model

In the value fields, specify the options that affect all users of the current model; the:

Default file extension for the code files
The default Get and Set prefixes
The default and additional Collection Classes
 

These options do not apply to other models.

 

 

Options for the current user

In the value fields, specify the options that apply under your own user ID in all models that you access; the:

Default attribute type to create (select from the drop-down list)
Default source code directory location (click on the Browse button - ( ... ))
Code Editor to use (click on the Browse button - ( ... ))

 

 

Statemachine Engineering

In the value fields, use the drop-down arrows to set the options to True or False; these options apply to generating code from State Machine models in the current model only:

Use the new Statemachine Template - set to True to use the code generation  templates from Enterprise Architect Release 11 and later, set to False to apply the EASL Legacy templates
Generate Trace Code - set to True to generate Trace code, False to omit it

 

 

 
Legacy State Machine Templates

Collection Classes

Click on this button to open the Collection Classes for Association Roles dialog, through which you specify the collection class definitions for Association connectors.

 

Collection Classes

Learn more