Author Topic: Trapping EA Events on Connectors & stereotypes - S  (Read 2939 times)

Jeff Bartels

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
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?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Trapping EA Events on Connectors & stereotypes
« Reply #1 on: November 25, 2014, 09:00:45 pm »
Well, it's EA. We would be happy to see things like you mention realized. But only a few of such user requirements made it to Sparx' development finally. I also used RR in the past (and would not like to go back) and I really appreciated the way the consistently implemented escapes. Sigh...

q.