Author Topic: Consistent Rendering of Text for Classes etc.  (Read 4726 times)

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Consistent Rendering of Text for Classes etc.
« on: September 11, 2009, 08:49:44 pm »
EA seems to be inconsistent in how it renders text for elements:-

<<thing>>
Class Name

seems to be OK but for activities we get

<<activity>>
My Activity

and for documents

<<Artifact>>
My Artifact

This is all very inconsistent wrt presentation.

At the very least it'd be nice to be able to independently select the stereotype and name elements and to be able to set a default appearance for these.

<<stereotype>>
Name
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Consistent Rendering of Text for Classes etc.
« Reply #1 on: September 11, 2009, 09:17:26 pm »
This is pretty much dictated by the UML specification, not EA.
No, you can't have it!

wikitect

  • EA User
  • **
  • Posts: 117
  • Karma: +2/-0
    • View Profile
    • TRAK Community
Re: Consistent Rendering of Text for Classes etc.
« Reply #2 on: September 11, 2009, 09:52:03 pm »
I had a quick look at the UML 2 spec and format doesn't seem to be mandated. There are lots of examples which use

<<stereotype>>
Name

but when you read the words it's pretty loose about how text is rendered.
======
Favourite epitaph: 'Under this sod lies another'

TRAK Framework https://sf.net/p/trak
MDG for TRAK https://sf.net/p/mdgfortrak

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Consistent Rendering of Text for Classes etc.
« Reply #3 on: September 14, 2009, 03:51:00 pm »
There are some (not many) guidelines about the formatting of text in UML. (search for "Style Guidelines")
Italic and Underline have their own specific meaning (abstract and static).
For classifiers we can find following in the UML specs:
Code: [Select]
• Attribute names typically begin with a lowercase letter. Multi-word names are often formed by concatenating the words
and using lowercase for all letters except for upcasing the first letter of each word but the first.
• Center the name of the classifier in boldface.
• Center keyword (including stereotype names) in plain face within guillemets above the classifier name.
• For those languages that distinguish between uppercase and lowercase characters, capitalize names (i.e, begin them
with an uppercase character).
• Left justify attributes and operations in plain face.
• Begin attribute and operation names with a lowercase letter.
• Show full attributes and operations when needed and suppress them in other contexts or references.
So yes, the name of a classifier should be bold and the stereotype should be plain.
On the other hand, the specification seems to contradict itself when it comes to activities. Most activities and actions in the examples have a plain text name, not a bold name. (but the stereotype is never bold)
The Artifact in the specifications follows the same rules as the Classifier it inherits from, plain stereotype and bold name.
I think this should count as a legit bug and should be reported as such to Sparx.

Geert

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Consistent Rendering of Text for Classes etc.
« Reply #4 on: September 14, 2009, 05:04:11 pm »
It is better to be consistently wrong than inconsistently wrong...  ;)

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!