Réserver une Démo

SVP notez : Cette page d’aide n’est pas pour la dernière version d’Enterprise Architect. La dernière aide peut être trouvée ici.

Pré. Proc.

EARules_EnableElementProperty

EARules_EnableElementProperty allows an Add-In registered to provide rules for a language to control if individual properties should be displayed as read-only in the docked Properties window.
This is called during selection of elements when the Properties window is visible.

Syntax

Function EARules_EnableElementProperty (Repository As EA.Repository, Language As String, Element as EA.Element, Namespace as String, Class as String, Property as String) As Integer
The EARules_EnableElementProperty function syntax contains these parameters.

Parameter

Description

See also

Repository

EA.Repository
Direction: IN
Description: An EA.Repository object representing the currently-open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
Repository Class

Language

String
Direction: IN
Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize.
EARules_Initialize

Element

EA.Element
Direction: IN
Description: Specifies the element currently being drawn.
Element Class

Namespace

String
Direction: IN
Description: Specifies the top level language this property comes from. This will be either "UML" or the name of a profile.

Class

String
Direction: IN
Description: Specifies the type this property was defined in. In the UML namespace that means the metaclass defined in UML. Otherwise it will be a stereotype.

Property

String
Direction: IN
Description: Specifies the metaclass or stereotype property to enable or disable.

Return Value


  • Return a positive value to allow edits to the property

  • Return zero to disable edits to the property

  • Return a negative value to use the behavior from the base rules