Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

MDG_PreMerge

Topics

Topic

Detail

See also

Details

MDG_PreMerge is called after a merge process has been initiated by the user and before Enterprise Architect performs the merge process.

This event is called after a user has performed their interactions with the merge screen and has confirmed the merge with the OK button, but before Enterprise Architect performs the merge process using the data provided by the MDG_Merge call, before any changes have been made to the model or the connected project.

This event is made available to provide the Add-In with the opportunity to generally set internal Add-In flags to augment the MDG_PreGenerate, MDG_PostGenerate and MDG_PreReverse events.

File save checking should not be performed with this function, but should be handled by MDG_PreGenerate, MDG_PostGenerate and MDG_PreReverse.

 

MDG_PreGenerate

MDG_PostGenerate

MDG_PreReverse

MDG_Merge

MDG_PostMerge

Syntax:

Function MDG_PreMerge(Repository As EA.Repository, PackageGuid As String) As Long

The MDG_PreMerge 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.

 

PackageGuid

String

IN

The GUID identifying the Enterprise Architect package sub-tree that is controlled by the Add-In.

 

Return Value:

A return value of zero indicates that the merge process can not occur. If the value is not zero the merge process proceeds.

If this method is not implemented then it is assumed that a merge process is used.