Book a Demo

Author Topic: suppressEADialog on generalization  (Read 2864 times)

Danny F

  • EA User
  • **
  • Posts: 60
  • Karma: +0/-0
    • View Profile
suppressEADialog on generalization
« on: February 26, 2013, 09:09:27 pm »
Hi, me again  :-[

how to NOT display the override operation dialog when creating a generalization

first : I know about the tools/option setting

But : Even if the option is checked I want to suppress the dialog !!

how ??

Repository.SuppressEADialogs in EA_OnPostNewConnector doesn't  seem to work
(neither calling it in the EA_OnPreNewConnector for that matter)

thanks again
Reg.

Danny

Paulus

  • EA User
  • **
  • Posts: 152
  • Karma: +0/-0
    • View Profile
Re: suppressEADialog on generalization
« Reply #1 on: February 27, 2013, 07:56:34 pm »
I guess it´s not possible to suppress this dialog...

What you could do is implement EA_OnPreNewConnector, create the connector yourself, and return FALSE.

This by-passes the EA mechanism that triggers the dialog, but on the other hand, you need to worry about breaking the undo-chain of the current diagram: i think in order to display the connector on the diagram requires a reload, and so a save before that as well.

Also be aware that you need to consider creation of relations throught eg the relationship matrix: this will -not- fire any of the pre- or post events only notifycontextitemmodified.

regards,

Paulus
« Last Edit: February 27, 2013, 07:58:12 pm by pmaessen »