Enterprise Architect Add-in Framework Documentation
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.
Also look at EA_OnContextItemDoubleClicked and EA_OnNotifyContextItemModified.
Namespace: EAAddinFrameworkAssembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398
Syntax
C# |
---|
public virtual void EA_OnContextItemChanged(
Repository Repository,
string GUID,
ObjectType ot
) |
Visual Basic |
---|
Public Overridable Sub EA_OnContextItemChanged ( _
Repository As Repository, _
GUID As String, _
ot As ObjectType _
) |
Visual C++ |
---|
public:
virtual void EA_OnContextItemChanged(
Repository^ Repository,
String^ GUID,
ObjectType ot
) |
Parameters
- Repository
- Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model.
Poll its members to retrieve model data and user interface status information.
- GUID
- Type: System..::..String
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) - GUID value
otElement - Element.ElementGUID
otPackage - Package.PackageGUID
otDiagram - Diagram.DiagramGUID
otAttribute - Attribute.AttributeGUID
otMethod - Method.MethodGUID
otConnector - Connector.ConnectorGUID
otRepository - NOT APPLICABLE, GUID is an empty string
- ot
- Type: ObjectType
Specifies the type of the new context item.
See Also