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

EA_AddinLicenseValidate

Topics

Topic

Detail

See also

Details

EA_AddInLicenseValidate is broadcast to all Add-Ins, providing them with a chance to use the Add-In key to determine the level of functionality to provide. The event is broadcast in response to a non-standard Enterprise Architect key being entered into the License Management dialog.

For the Add-In to validate itself against this key, the Add-In's EA_AddinLicenseValidate handler should return true to advise Enterprise Architect that the license has been validated. The EA_AddinLicenseValidate event is broadcast to all Add-Ins, therefore one license can validate many Add-Ins.

If an Add-In elects to handle a license key by returning true to EA_AddinLicenseValidate, it is called upon to provide a description of the license key through the EA_AddinLicenseGetDescription event. If more than one Add-In elects to handle a license key, the first Add-In that returns true to EA_AddinLicenseValidate is queried for the license key description.

 

EA_AddinLicenseGetDescription

Syntax:

Function EA_AddInLicenseValidate(Repository As EA.Repository, AddinKey As String) As Boolean

The EA_AddInLicenseValidate function syntax contains the following elements.

Parameter

Type

Direction

Description

AddinKey

String

IN

The Add-in license key that has been entered in Enterprise Architect's License Management dialog.

 

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:

For the Add-in to validate against this key it should return true to indicate to Enterprise Architect that the key is valid and has been handled.