Book a Demo

Author Topic: Overriding built-in UML stereotypes  (Read 3867 times)

mtamme

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Overriding built-in UML stereotypes
« on: November 25, 2014, 01:21:37 am »
Hi,

I would like to provide an <<Entity>> stereotype within my custom UML profile, but I have a problem with the default appearance of classes where my stereotype is applied. I always get the shapes from the robustness diagram stereotypes. Turning off stereotype icons on diagram level is no option for me.  

Disabling different MDG Technologies doesn't help. I also tried to provide a custom shape-script and than calling drawnativeshape() without success.
For me it seems the default appearance of the <<entity>> stereotype is somehow hard-coded within EA.

I've already tried my workarounds with EA 8, 9.3 and 11 -> no success.

How can I provide my custom <<Enity>> Stereotype within an UML profile and the default UML class appearance? Can I access somehow the draw method of a standard class shape within my shape-script?

Thanks,
Martin
« Last Edit: November 25, 2014, 02:45:18 am by mtamme »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Overriding built-in UML stereotypes
« Reply #1 on: November 25, 2014, 03:37:19 am »
You're probably right with your assumption. There are a couple of hard-coded things in EA. I seem to remember that Table is one of those. Entity might also be one of those candidates. A possible work around is to change the case (i.e. ENTITY instead of Entity - or if the original was all lower case you could use Entity).

q.

mtamme

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Overriding built-in UML stereotypes
« Reply #2 on: November 25, 2014, 08:49:04 pm »
Thanks for your reply. I've already tried capital letters for my stereotype without success. EA applies my custom stereotype to the classifier but displays the shape of the "built-in" stereotype.

Cheers,
Martin

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Overriding built-in UML stereotypes
« Reply #3 on: November 25, 2014, 08:54:06 pm »
In case none of the Sparxians answers here the next 2 or 3 days you should contact Sparx support directly (and possibly post the outcome here).

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Overriding built-in UML stereotypes
« Reply #4 on: December 01, 2014, 08:45:35 am »
Try unchecking Tools | Options | Objects | Classes honor analysis stereotypes.

You can't change the behavior for Objects though.