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

Contents
Prev Next

Code Engineering Options

The 'Code Engineering' submenu of the Package context menu provides options for performing a range of different types of code generation operations on the contents of the selected Package.

Access

Context Menu

Project Browser | Right-click on Package | Code Engineering

Options

Option

Description

See also

Generate Source Code

Select this option to generate the code for the elements in the selected Package.

Shortcut: Ctrl+Alt+K

Generate a Package

Import Source Directory

Select this option to import code from all source files in a complete directory structure, which helps you to add or synchronize multiple files in a directory.

Shortcut: Ctrl+Shift+U

Import Source Directory

Import from source file(s)

Select this option to import source code into the project from one or more external source files.

Import Source Code

Import Binary Module

Select this option to import binary into your model from external source files. Files you can currently import include:

  • Java Archive (.jar)
  • .NET PE file (.exe, .dll) - Native Windows DLL and EXE files are not supported, only PE files containing .NET assembly data
  • Intermediate Language file (.il)
Import Binary

Import Resource Script

Select this option to import Microsoft WindowsTM Resource Scripts (as .rc files), which contain the Win32 dialog definitions (those with the stereotype «win32Dialog») for an application's graphical user interface.

Import Resource Script

Synchronize Package With Code

Select this option to synchronize the elements in the selected Package in the Project Browser with the source code.

Shortcut: Ctrl+Alt+M

Update Package Contents Operation Menu - Project Browser Element Options in the Project Browser

Generate DDL

Select this option to generate DDL from the selected Package, for Tables, Stored Procedures and Views.

Generate DDL For Objects

Import DB schema from ODBC

Select this option to import database schema into a standard UML model, to initially create a database definition and subsequently update the model from the live database.

Import DB schema from ODBC

Generate XML Schema

Select this option to forward-engineer an XML Schema model into W3C XML Schema (XSD) files.

Generate XSD

Import XML Schema

Select this option to reverse engineer a W3C XML Schema (XSD) file to create or overwrite a Package of your UML Class model.

Import XSD

Generate WSDL

Select this option to forward-engineer a WSDL model into WSDL 1.1 files.

Generate WSDL

Import WSDL

Select this option to reverse engineer a WSDL 1.1 file to create or overwrite a Package of your UML Class model.

Import WSDL

Reset Options for this Package

Select this option to manually reset the stored options for all Classes in a Package.

Some Class options are stored when a Class is created, and so for existing Classes are not updated by changes to the 'Preferences' dialog. These include the code language, whether child Packages are processed, and whether filenames are cleared, and are the options you update using this method.

Reset Options

Manage DBMS Options

Select this option to map the DBMS data types of the Package to the data types of another DBMS.

Reset DBMS Options

Set as Namespace Root
Clear Namespace Root

Select these options to set the selected Package as the namespace root for its hierarchy, or to clear the Package as a namespace root.

Namespaces

Suppress Namespace
Show Namespace

Select these options to temporarily omit the selected Package from a namespace definition, and to restore it again.

Live Code Generation

Select this option to generate code from the elements in the Package as they are added or changed.