Delphi Properties

Enterprise Architect has comprehensive support for Delphi properties. These are implemented as Tagged Values, with a specialized property editor to help create and modify Class properties. By using the Feature Visibility element context menu option, you can display the 'tags' compartment that contains the properties. Imported Delphi Classes with properties have this feature automatically made visible for your convenience.

Manually activate the property editor

In the selected Class set the code generation language to Delphi
Right-click on the Class and select the Delphi Properties context menu option to open the editor
 

Using the Delphi Properties editor, you can build properties quickly and simply; from here you can:

Change the name and scope (only Public and Published are currently supported)
Change the property type (the drop-down list includes all defined Classes in the project)
Set the Read and Write information (the drop-down lists have all the attributes and operations from the current Class; you can also enter free text)
Set Stored to True or False
Set the Implements information
Set the default value, if one exists
 

Notes

When you use the Create Property dialog from the Attribute screen, the system generates a pair of Get and Set functions together with the required property definition as Tagged Values; you can manually edit these Tagged Values if required
Public properties are displayed with a '+' symbol prefix and published with a '^'
When creating a property in the Create Property Implementation dialog (accessed through the Attributes dialog), you can set the scope to Published if the property type is Delphi
Only Public and Published are supported
If you change the name of a property and forward engineer, a new property is added, but you must manually delete the old one from the source file