1
Automation Interface, Add-Ins and Tools / Trapping EA Events on Connectors & stereotypes - S
« on: November 25, 2014, 05:59:47 pm »
Does anyone have any comments about why some of the EA events that can be trapped can be controlled (i.e. allowed or inhibited) via a Boolean return value, while others cannot (i.e. the required handler is a method with no return value)? I would love to be able to inhibit certain edits to Packages, Elements, and Connectors in my add-in.
More-specifically, I can trap a user attempt to change the stereotype of a Connector and decide to restore the stereotype to a value of my choosing, but the end result in EA is weird - the user-selected stereotype AND my corrected value are BOTH associated with the connector. Can't seem to find a property on the Connector object that I can manipulate to restore the stereotype to the ONE desired value.
Any suggestions?
More-specifically, I can trap a user attempt to change the stereotype of a Connector and decide to restore the stereotype to a value of my choosing, but the end result in EA is weird - the user-selected stereotype AND my corrected value are BOTH associated with the connector. Can't seem to find a property on the Connector object that I can manipulate to restore the stereotype to the ONE desired value.
Any suggestions?