Book a Demo

Author Topic: Addin notifications  (Read 3471 times)

Maggie

  • EA User
  • **
  • Posts: 106
  • Karma: +0/-0
    • View Profile
Addin notifications
« on: April 12, 2012, 05:15:30 pm »
Hi
Is it possible to detect when the user presses the OK button on the properties editor dialog?
I would like my addin to be notified when a class has been edited

Thanks

Stefan Bolleininger

  • EA User
  • **
  • Posts: 308
  • Karma: +0/-0
    • View Profile
Re: Addin notifications
« Reply #1 on: April 12, 2012, 05:45:26 pm »
Hi Maggie,

i assume, you want to be informed if an element has been changed:

Than it would be kind of these:

public virtual void EA_OnNotifyContextItemModified(EA.Repository Repository, string GUID, EA.ObjectType ot)

with if "ot == EA.ObjectType.otElement" you cann than call for objecttype Element, or if you want otDiagram..... in any way you like.

in my case, i use this to get notified, when i element has been changed to mark it as dirty.

Best regards
Enterprise Architect in "safetycritical development" like medical device industry. My free Add-in at my Website