EA_OnPostNewMethod

Return to Introduction  Previous page  Next page

EA_OnPostNewMethod notifies Add-Ins that a new method has been created on a diagram. It enables Add-Ins to modify the method upon creation.

 

Syntax

 

Function EA_OnPostNewMethod(Repository As EA.Repository, Info As EA.EventProperties) As Boolean

 

The EA_OnPostNewMethod function syntax contains the following elements

 

 

Parameter

Type

Direction

Description

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.

Info

EA.EventProperties

IN

Contains the following EventProperty Objects for the new  method :

 

·MethodID : A long value corresponding to Method.MethodID

 

 

Return Value

 

Return True if the method has been updated during this notification. Return False otherwise.

 

Details

 

This event occurs when a user creates a new method on an element by either drag-dropping from the Project Browser window, using the Methods properties dialog, or the in-place editor on the diagram. The notification is provided immediately after the method is created. Set Repository.SuppressEADialogs = true to suppress Enterprise Architect from showing its default dialogs.

See Also