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

Synchronize Code

Enterprise Architect uses code templates during the forward synchronization of the following programming languages:

·ActionScript
·C
·C++
·C#
·Delphi
·Java
·PHP
·Python
·VB
·VB.Net
 

Topics

Topic

Detail

See also

Change Types

Three types of change can occur in the source when it is synchronized with the UML model:

·Synchronize Existing Sections: for example, changing the return type in an operation declaration
·Add New Sections to Existing Features: for example, adding notes to a Class declaration, where there were previously none
·Add New Features and Elements: for example, adding a new operation to a Class

 

Each of these changes must be handled differently by Enterprise Architect; their effect on the CTF is described in the topics listed on the right.

 

Synchronize Existing Sections

Add New Sections to Existing Features

Add New Features and Elements

 

Only a subset of the CTF base templates is used during synchronization. This subset corresponds to the distinct sections that Enterprise Architect recognizes in the source code. The following table lists the code templates and the corresponding code sections that can be synchronized.

Code Template

Code Section

Class Notes

Comments preceding Class declaration.

 

Class Declaration

Up to and including Class parents.

 

Attribute Notes

Comments preceding Attribute declaration.

 

Attribute Declaration

Up to and including terminating character.

 

Operation Notes

Comments preceding operation declaration.

 

Operation Notes Impl

As for Operation Notes.

 

Operation Declaration

Up to and including terminating character.

 

Operation Declaration Impl

Up to and including terminating character.

 

Operation Body

Everything between and including the braces.

 

Operation Body Impl

As for Operation Body.

 

Learn more