预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

EA_OnContextItemDoubleClicked

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 the Enter key) on the item in context, either in a diagram, in the Browser window or in a custom compartment. Add-Ins to handle events can subscribe to this broadcast function.

Syntax

Function EA_OnContextItemDoubleClicked (Repository As EA.Repository, GUID As String, ot as EA.ObjectType)
The EA_OnContextItemDoubleClicked 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:

  • otElement - Element.ElementGUID

  • otPackage - Package.PackageGUID

  • otDiagram - Diagram.DiagramGUID

  • otAttribute - Attribute.AttributeGUID

  • otMethod - Method.MethodGUID

  • otConnector - Connector.ConnectorGUID

ot

EA.ObjectType
Direction: IN
Description: Specifies the type of the new context item.
ObjectType

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

Learn more