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.

EA_OnContextItemChanged

EA_OnContextItemChanged notifies Add-Ins that a different item is now in context.
This event occurs after a user has selected an item anywhere in the Enterprise Architect GUI. Add-Ins that require knowledge of the current item in context can subscribe to this broadcast function. If ot = otRepository, then this function behaves in the same way as EA_FileOpen.

Syntax

Sub EA_OnContextItemChanged (Repository As EA.Repository, GUID As String, ot as EA.ObjectType)
The EA_OnContextItemChanged function syntax contains these parameters.

Parameter

Type

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

GUID

String
Direction: IN
Description: Contains the GUID of the new context item. The value corresponds to these properties, depending on the value of the ot parameter:

  • ot (ObjectType) - GUID value

  • otElement - Element.ElementGUID

  • otPackage - Package.PackageGUID

  • otDiagram - Diagram.DiagramGUID

  • otAttribute - Attribute.AttributeGUID

  • otMethod - Method.MethodGUID

  • otConnector - Connector.ConnectorGUID

  • otRepository - NOT APPLICABLE, the GUID is an empty string

ot

EA.ObjectType
Direction: IN
Description: Specifies the type of the new context item.
ObjectType

Return Value

None.

Learn more