Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: SomersetGraham on April 27, 2012, 07:59:10 pm

Title: delete connector
Post by: SomersetGraham on April 27, 2012, 07:59:10 pm
Hi
In my addin I can trap the EA_OnPreDeleteConnector event, but if this relationship is deleted in another way (for example from the 'Links' tab on the properties dialog for the class) this event is not generated.

Is there a way to trap all occurrences of the user deleting a relationship?

Thanks
Title: Re: delete connector
Post by: qwerty on April 27, 2012, 08:21:08 pm
I'd consider this a bug to be reported.

I also noticed that OnPostNewDiagram is fired twice on Make Composite.

q.
Title: Re: delete connector
Post by: SomersetGraham on April 27, 2012, 08:40:48 pm
bug reported
Title: Re: delete connector
Post by: SomersetGraham on May 01, 2012, 05:06:56 pm
The response from Sparx -
Hello Graham,

Thanks for the note.

We have confirmed that this is an issue and it should be fixed in a future release of EA.

Issue ID: 12042746

Unfortunately there is currently no workaround for when deleting relationships from the relationships window.

If you have any further questions please let us know.
Title: Re: delete connector
Post by: qwerty on August 01, 2023, 03:55:32 am
Obviously this is still an issue. Wanna set a new "never-fixed-issue-record"? https://stackoverflow.com/questions/76805773/ea-addin-ea-onpredeleteconnector-is-not-triggered-when-used-with-relationship (https://stackoverflow.com/questions/76805773/ea-addin-ea-onpredeleteconnector-is-not-triggered-when-used-with-relationship)

q.