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

Code Generation Toolbar

CodeGenToolbar

The Code Generation toolbar provides quick access to the following functions (in order):

  • Set the default language
  • Set the default database
  • Import Classes and Interfaces from source files (see menu below)
  • Generate code for a single selected Class  [F11]
  • Batch generate code for one or more selected Classes  [Shift]+[F11]
  • Synchronize selected Classes with source code  [F7]
  • View code in default editor  [F12].

Set Default Code Language

To set the default language for the model click on the Default Language drop-down arrow and select the appropriate language.

CodeGenLang

Set Default Database

To set the default database type for modeling click on the Default Database drop-down arrow and select the appropriate database type.

DatabaseType

Import Code

To select a language for code generation, click on the drop-down arrow for the Import button.

ImportMenu

You can move this toolbar to any dockable position and it retains that position in subsequent sessions. You can hide or show the toolbar by clicking on the View | Toolbars | Code Generation menu option.