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

EA_OnContextItemChanged

Topics

Topic

Detail

See also

Details

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 the same as EA_FileOpen.

 

EA_FileOpen

EA_OnContextItemDoubleClicked

EA_OnNotifyContextItemModified

Syntax:

Sub EA_OnContextItemChanged(Repository As EA.Repository, GUID As String, ot as EA.ObjectType)

The EA_OnContextItemChanged function syntax contains the following elements:

Parameter

Type

Direction

Description

GUID

String

IN

Contains the GUID of the new context item. This value corresponds to the following properties, depending on the value of the ot parameter:

ot (ObjectType)

otElement

otPackage

otDiagram

otAttribute

otMethod

otConnector

otRepository

- GUID value

- Element.ElementGUID

- Package.PackageGUID

- Diagram.DiagramGUID

- Attribute.AttributeGUID

- Method.MethodGUID

- Connector.ConnectorGUID

- NOT APPLICABLE, GUID is an empty string

 

ot

EA.ObjectType

IN

Specifies the type of the new context item.

 

Repository

EA.Repository

IN

An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.

 

Return Value:

None.