Create a new EA add-in by simply extending the EAAddinBase.cs base class and overriding the required events.
The EAAddinBase.cs is part of the open-source Enterprise Architect Add-in Framework hosted on GitHub, so for the latest version please download the zip or tar directly from GitHub
Instructions can be found in the downloadable pdf or on my blog
This article contains content available for registered members only. You need to be logged in to view/download this content.
Comments
Hi Helmut, You are indeed right. I tested these both methods and they only seem to work when the Args parameter is of type object. I've already changed the original source code on github: https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/... and I'll the attached file on here as well (that might take a while longer since Sparx needs to validate before a new version of the post is published.) Thanks for noticing. Geert
by Geert Bellekens on Thu, 12/05/2011 - 13:24.
Hi Geert, good template. According to my researches the signature of public virtual void EA_OnStartValidation(EA.Repository Repository, params object[] Args){} has to be changed to: public virtual void EA_OnStartValidation(EA.Repository Repository, object Args) { } The EA documentation is also wrong in this point but there is an article in the forum which tackles the problem. I tested it with EA 9. EA_OnEndValidation is also affected. Kind regards, Helmut
by Helmut Ortmann on Tue, 10/05/2011 - 21:01.
see comment above ;) Geert a feature allowing to edit or remove comments within x minutes of posting would be nice :/
by Geert Bellekens on Thu, 12/05/2011 - 13:30.