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

Prev Next

Edit Add-In Code

The Class 'Behavior' view provides a convenient view for editing the code associated with the behavioral features of your Class.



Develop > Source Code > Behavior

Syntax Highlighting

The Class 'Behavior' view highlights code using the language assigned to the Class.  For Model Add-Ins, this should be Javascript.

Adding Operations

Right click on the Class node at the top of the Structure Tree to add a new operation.

All operations should be given names that are valid for Javascript functions.

All code written will be generated to a function on a Javascript object. Therefore, to call any function you have written, you will need to prefix it with: this.

Learn more