Book a Demo

Author Topic: Stereotype and GUIElement  (Read 3729 times)

didver

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Stereotype and GUIElement
« on: May 22, 2006, 02:24:32 am »
Hi,

When using a predefined stereotype on a GUIElement, it isn't dispalyed on the diagram.

When I create my own stereotype and use it in the same way on a GUIElement, the stereotype appears on the diagram (in the box of the GUIElement and the name is displayed beneath)

Can I get the behavior of a predefined stereotype for the custom ones (that is no display of the stereotype)?

Got this problem with a stereotype with custom colors

Thanks,
Didier
« Last Edit: May 22, 2006, 02:58:10 am by didver »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype and GUIElement
« Reply #1 on: May 22, 2006, 05:24:14 am »
Didier,

I think the only solution in this case is to turn off the display of stereotypes on the diagram. Do this via the diagram properties dialog (F5) and check the Hide Element Stereotype box. [This works for class diagrams, and IMO should work for UI diagrams as well. I have not verified this, so please accept my appologies if it does not.]

The downside here is that this will hide all stereotypes on that diagram. You will also have to do this with each diagram, as there does not appear to be an equivalent Options setting for EA.

Please note that if you create your diagrams through the automation interface, this option will have to be set each time. It is pretty tricky to do this, and can present different problems depending on which type of interface you are using. I'll leave this for another time and thread.

HTH,
David
No, you can't have it!

didver

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Stereotype and GUIElement
« Reply #2 on: May 22, 2006, 05:34:19 am »
Thank you David,

The Hide Element Stereotype is not working for UI elements (OK for classes indeed)

Regards,
Didier

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Stereotype and GUIElement
« Reply #3 on: May 22, 2006, 05:43:31 am »
Didier,

This is a very long shot - a wild guess actually...

Have you defined your stereotypes in the Settings / UML / Stereotypes dialog? If so, what base class did you give them? I strongly doubt this will have an effect, but it is probably worth playing around a bit. If it works you will have a solution - a pretty weak one, but that will at least get you going for now.

Regardless of whether the above works, I think this is worth bringing to the attention of Sparx. Since the UI diagrams are not part of UML, this does not sound like a bug per se, but rather a limitation. Try asking for an 'improvement' from within EA via Help / On-line Resources / Request a Feature. I think this is something that will improve consistency [we're listening Paolo, I believe Sparx is too], and thus enhance the overall product.

David

EDIT: You should do this now. Sparx is tweaking how stereotypes affect presentation of elements for 6.5. This sounds like a relatively small - in terms of effect and fan-out - change. The best time to get it well integrated into the product may be while they are dealing with (and testing) that part of the presentation logic.
« Last Edit: May 22, 2006, 05:46:02 am by Midnight »
No, you can't have it!

didver

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: Stereotype and GUIElement
« Reply #4 on: May 22, 2006, 06:14:18 am »
Yes, stereotype defines via the Settings / UML / Stereotypes dialog and I tried some base classes indeed with no result.

-> requested : "Your Feature Request has been sent to Sparx Systems"