Book a Demo

Author Topic: MDA, stereotype icons, overwrite code  (Read 3967 times)

Thomas_Arnbjerg

  • EA User
  • **
  • Posts: 80
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
MDA, stereotype icons, overwrite code
« on: May 24, 2014, 05:20:17 pm »
Hi all,

Two questions:

Does anyone know how to disable stereotype icons for diagrams generated with a MDA transformation?

Does anyone know how to create a class with an MDA transformation with the 'replace existing source code' activated under code generation options?

Thanks

Thomas Arnbjerg

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: MDA, stereotype icons, overwrite code
« Reply #1 on: May 26, 2014, 09:24:58 am »
Neither of those things can be set with transforms.

Nizam Mohamed

  • EA User
  • **
  • Posts: 193
  • Karma: +1/-0
    • View Profile
Re: MDA, stereotype icons, overwrite code
« Reply #2 on: May 27, 2014, 02:04:15 pm »
As Simon has mentioned, these cannot be achieved in transformations, but, you can do this with an addin that handles EA_OnPostTransform event.
  • To disable stereotype icons for diagrams, You have to set ShowIcons to 0.
  • To set 'Replace Existing Source Code' true for classes, you have to set, 'nKill' option in the the Class's GenOption field to 1