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

Only a subset of the code templates are 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 their corresponding code sections, which 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.

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

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