Enterprise Architect Add-in Framework Documentation
EA_OnContextItemDoubleClicked notifies Add-Ins that the user has double-clicked the item currently in context. This event occurs when a user has double-clicked (or pressed [Enter]) on the item in context, either in a diagram or in the Project Browser. Add-Ins to handle events can subscribe to this broadcast function. Also look at EA_OnContextItemChanged and EA_OnNotifyContextItemModified.

Namespace: EAAddinFramework
Assembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398

Syntax

C#
public virtual bool EA_OnContextItemDoubleClicked(
	Repository Repository,
	string GUID,
	ObjectType ot
)
Visual Basic
Public Overridable Function EA_OnContextItemDoubleClicked ( _
	Repository As Repository, _
	GUID As String, _
	ot As ObjectType _
) As Boolean
Visual C++
public:
virtual bool EA_OnContextItemDoubleClicked(
	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
ot
Type: ObjectType
Specifies the type of the new context item.

Return Value

Return True to notify Enterprise Architect that the double-click event has been handled by an Add-In. Return False to enable Enterprise Architect to continue processing the event.

See Also