Book a Demo

Author Topic: Class name with Ancestry too large  (Read 3200 times)

Neil Henderson

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Class name with Ancestry too large
« on: August 27, 2010, 02:12:09 pm »
I am dropping a class object onto a swimlane - which works fine, but because the name of the class includes all of its ancestry it is too large for the box on the diagram.
How do I get the diagram to display just the name of teh class, without all of its ancestry?
Thanks Neil 8-)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Class name with Ancestry too large
« Reply #1 on: August 27, 2010, 02:59:21 pm »
Neal,

What exactly do you mean by "ancestry"?
AFAIK there are two things that can be added to a classname:
- The name of the owning package (between brackets)
- The name of the owning element (in case of a nested class)

You can remove the name of the owning package by unticking "show namespace" in the diagrams properties (tab Diagram).
The name of the owning element for nested classes cannot be removed. If this is bothering you chances are the class shouldn't be nested at all.

Geert

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Class name with Ancestry too large
« Reply #2 on: August 30, 2010, 08:54:45 am »
Diagram > Properties > Diagram > Show Additional Parents might be the setting you're looking for...
The Sparx Team
[email protected]

Neil Henderson

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Class name with Ancestry too large
« Reply #3 on: August 30, 2010, 12:20:06 pm »
Thanks Geert and KP,
    I have tried both the suggestions, but I do still have classes on my diagram that still show (for example)
<<Business Service>> Processing::Product Processing::Disburse
 I would like the diagram to just show the word
Disburse
on the class box shown on the diagram  :)
 
   Do you know how I can do this please? (I feel it must be possible)

             Thanks   Neil
 
Sorry about the display - this forum software seems to interpret double colons as a funny face!!
 
« Last Edit: August 30, 2010, 12:21:41 pm by neil.henderson »

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Class name with Ancestry too large
« Reply #4 on: September 08, 2010, 07:19:41 am »
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.