Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
EA_AddinLicenseValidate
Description
When a user directly enters a license key that doesn't match a Sparx Systems key into the License Management dialog EA_AddInLicenseValidate is broadcast to all Enterprise Architect Add-Ins, providing them with a chance to use the Add-In key to determine the level of functionality to provide. When a key is retrieved from the Sparx Systems Keystore only the target Add-In will be called with the key.
For the Add-In to validate itself against this key, the Add-In's EA_AddinLicenseValidate handler should return true to confirm that the license has been validated. As the EA_AddinLicenseValidate event is broadcast to all Add-Ins, 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.
Syntax
Function EA_AddInLicenseValidate (Repository As EA.Repository, AddinKey As String) As Boolean
Parameter |
Type |
Direction |
Description |
---|---|---|---|
AddinKey |
String |
IN |
The Add-in license key that has been entered in the License Management dialog.
|
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 that the key is valid and has been handled.
Learn more