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_ShowElementProperty

EARules_ShowElementProperty allows an Add-In registered to provide rules for a language to control visibility for individual properties in the docked Properties window.

This is called during selection of elements when the Properties window is visible.

Syntax

Function EARules_ShowElementProperty (Repository As EA.Repository, Language As String, Element as EA.Element, Namespace as String, Class as String, Property as String) As Integer

The EARules_ShowElementProperty 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. Will either be "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 display or hide.

Return Value

  • Return a positive value to display the property
  • Return zero to hide the property
  • Return a negative value to use the behavior from the base rules