前页 | 后页 |
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 |
EA.ObjectType Direction: IN Description: Specifies the type of the new context item. |
ObjectType |