Book a Demo

Author Topic: Entity appearance  (Read 5314 times)

SebastienRoy

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Entity appearance
« on: February 07, 2009, 09:33:49 am »
Hello,
Currently, in EA, classes having <<Entity>> stereotype are drawn as a circle underlined with a bar.
I would like to have them drawn as a classic class (with all its compartments, styles, etc), with perhaps an "Entity" decoration.
In shape scripting, there is nothing to draw a "classic class". drawnativeshape() method draws a Circle and a bar.
Is there a way to have classical drawing for <<Entity>> classes ?

Thanks for any help
« Last Edit: February 07, 2009, 09:35:09 am by SebastienRoy »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Entity appearance
« Reply #1 on: February 08, 2009, 05:22:19 am »
Perhaps your problem is related to the following.

EA recognizes both an Entity element and an «Entity» stereotype. These are different - the latter is stereotyped Class element, not an Entity element.

This can cause some confusion when using either type of 'entity' in a model. The semantics come out differently. These are both extensions to core UML, at least to some extent. You will find the Entity element in the Custom element toolbox. The stereotyped Class element comes from (perhaps among other sources) the Unified Process.
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Entity appearance
« Reply #2 on: February 09, 2009, 09:43:30 am »
You can switch this off on a per-diagram basis by going "Diagram > Properties > Elements" and clearing the "Use Stereotype Icons" option.
The Sparx Team
[email protected]

SebastienRoy

  • EA User
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Re: Entity appearance
« Reply #3 on: February 09, 2009, 08:15:31 pm »
Thank you very much, KP, that's exactly what I was looking for.

Sébastien

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Entity appearance
« Reply #4 on: February 09, 2009, 11:54:03 pm »
Two things to note about diagram properties: EA will not retroactively change diagrams, you will have to set this manually for diagrams you have already created; and EA will (I believe) remember this setting as the default for diagrams you create in future.
No, you can't have it!