Book a Demo

Author Topic: wrap namespace and object name in sequence diagram  (Read 2865 times)

Narayanan

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
wrap namespace and object name in sequence diagram
« on: February 13, 2008, 01:38:49 am »
Hello all,

While creating a sequence diagram with EA 7.0.815, I noticed that class names are prefixed with its namespace name.  My class names and namespace names are quite big (more than 15 characters) and the depth of sequence diagram is also quite deep.  Due to this, I soon run out of paper, even if set for landscape mode.  To avoid this, I switched off the namespace name by clearing the tick on <diagram properties> -> diagram -> show name space.

With this I am able to fit the diagram in one page.  Can I achieve this by wrapping the namespace::classname text to achieve the same effect without hiding the namespace?

I attempted to double click on the class name, which allows me to edit but not wrap the text.

Any ideas?

Thanks for your time in advance.

Regards,
Narayanan

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: wrap namespace and object name in sequence dia
« Reply #1 on: February 13, 2008, 04:16:47 am »
Hi Narayanan,

I suspect (without proof) that this will present problems. Class names usually do not contain embedded spaces - of course there are exceptions, and EA does allow you to handle these gracefully - and adding namespace to names does not add any (additional) whitespace.

The obvious solution would be to allow the name to break after a namespace - actually, after the punctuation. You might end up with something like:

OuterNamespace::InnerNamespace::
VeryLongClassifierName

If that would work for you - and others who might chime in - then perhaps you'd like to send a feature request to Sparx.

David
No, you can't have it!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: wrap namespace and object name in sequence dia
« Reply #2 on: February 13, 2008, 04:33:46 pm »
Quote
OuterNamespace::InnerNamespace::
VeryLongClassifierName
I think this is a necessary (and acceptable) alternate.

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