Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Neil Henderson on August 27, 2010, 02:12:09 pm

Title: Class name with Ancestry too large
Post by: Neil Henderson 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-)
Title: Re: Class name with Ancestry too large
Post by: Geert Bellekens 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
Title: Re: Class name with Ancestry too large
Post by: KP on August 30, 2010, 08:54:45 am
Diagram > Properties > Diagram > Show Additional Parents might be the setting you're looking for...
Title: Re: Class name with Ancestry too large
Post by: Neil Henderson 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!!
 
Title: Re: Class name with Ancestry too large
Post by: skiwi on September 08, 2010, 07:19:41 am
(http://i306.photobucket.com/albums/nn245/copperkiwi/Sparx/SparxSystemsForum-PostReply-GoogleChrome_2010-09-08_08-59-14.png)