Add New Sections to Existing Features

Return to Introduction  Previous page  Next page

The following can be added as new sections, to existing features in the source code:

· Class Notes
· Attribute Notes
· Operation Notes
· Operation Notes Impl
· Operation Body
· Operation Body Impl

Assume Class A from the previous example had no note when we originally generated the code. Now assume that we specify a note in the model for Class A. Enterprise Architect  attempts to add the new note from the model during synchronization. It does this by executing the Class Notes template.

To make room for the new section to be inserted, we can specify how much white space to append to the section via synchronization macros. These macros are described in the Enterprise Architect Software Developers' Kit (SDK).