EA_OnContextItemDoubleClicked

Topics

Topic

Detail

See also

Details

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.

 

EA_OnContextItemChanged

EA_OnNotifyContextItemModified

Syntax:

Function EA_OnContextItemDoubleClicked(Repository As EA.Repository, GUID As String, ot as EA.ObjectType)

The EA_OnContextItemDoubleClicked 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)

- GUID value

otElement

- Element.ElementGUID

otPackage

- Package.PackageGUID

otDiagram

- Diagram.DiagramGUID

otAttribute

- Attribute.AttributeGUID

otMethod

- Method.MethodGUID

otConnector

- Connector.ConnectorGUID

 

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:

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.