Book a Demo

Author Topic: Hiding the stereotype on an artifact  (Read 7082 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Hiding the stereotype on an artifact
« on: June 25, 2010, 12:33:05 pm »
I am trying to hide both the artifact icon and the «artifact» label in the element,
but having tried all four combinations on the diagram properties element tab under "Element Appearance" "Use Stereotype Icons" and "Show Element Stereotypes" they will not both disappear,

See this image for the result for each of these settings.


Any suggestions?

Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Hiding the stereotype on an artifact
« Reply #1 on: June 25, 2010, 01:55:11 pm »
The «artifact» label is not a stereotype.  It is a keyword, minor difference but the UML spec says that the keyword must be displayed for differentiation from other element types.

End result, I don't believe you can not display it without shape-scripting the artifact yourself.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Hiding the stereotype on an artifact
« Reply #2 on: June 25, 2010, 02:13:36 pm »
Thanks, interesting.

Why then do the "stereotype" options influence the display of the "keyword" and icon.

What is the icon then, a "keyword" or a stereotype?
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Hiding the stereotype on an artifact
« Reply #3 on: June 26, 2010, 05:38:41 am »
Quote
The «artifact» label is not a stereotype.  It is a keyword, minor difference but the UML spec says that the keyword must be displayed for differentiation from other element types.

End result, I don't believe you can not display it without shape-scripting the artifact yourself.
Oh, but if you are going that route then you should look at how Component for example is displayed.
I'm pretty sure that every example of a component in the UML spec has the <<component>> keyword. In EA there is no sign of that keyword.

Geert

son-of-sargasso

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Hiding the stereotype on an artifact
« Reply #4 on: June 26, 2010, 10:48:19 am »
Hi Geert,

You know I had to look that up, and it's pretty explicit:
Quote
In UML 2.0, a Component is notated by a classifier symbol that no longer has two protruding rectangles. These were cumbersome to draw and did not scale well in all circumstances. Also, they interfered with any interface symbols on the edge of the Component. Instead, a «component» keyword notation is used in UML 2.0. Optionally, a component icon that is similar to the UML 1.4 icon can still be used in the upper right-hand corner of the component symbol. For backward
compatibility reasons, the UML 1.4 notation with protruding rectangles can still be used.

But strangely, I can't remember that bit about the keyword being mandatory in "previous" 2.x's???

Anyway, another day another thing lerrnned.

cheers
bruce

(Quote from Super 10-05-05 section 8.3.1 p159 "Changes from previous UML")
« Last Edit: June 26, 2010, 10:50:26 am by barrydrive »

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Hiding the stereotype icon of a component
« Reply #5 on: August 17, 2011, 10:47:54 am »
On a related note, how can I suppress the stereotype icon?

Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Hiding the stereotype on an artifact
« Reply #6 on: August 18, 2011, 01:50:41 am »
Stereotype it and relate the stereotype to a shape script. Not really a good idea, but the best i have....

q.