Book a Demo

Author Topic: Class diagram: suppress parameters for template classes?  (Read 3716 times)

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Class diagram: suppress parameters for template classes?
« on: April 18, 2008, 07:59:03 pm »
When a .Net assembly is imported as binary module, classes using generics end up as "parameterized clases". In a diagram they have (on the right upper corner) a rectangle with a dotted boundary containing the parameters. This can get long if the template types come from different namespaces.

Is there any way to suppress the bloody thing? I just don't want it to show on every diagram, but I can't seem to get rid of it.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Class diagram: suppress parameters for template classes?
« Reply #1 on: April 20, 2008, 10:08:36 pm »
I don't think you can get rid of the template box; it seems to be a different classifier rather than a decoration on the class box.

You might be able to shrink it a bit by setting diagram properties - and perhaps global options - to not show namespaces and foreign parents.

Of course you'd have to resize things afterwards.

Let us know.
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Class diagram: suppress parameters for template classes?
« Reply #2 on: April 21, 2008, 04:45:42 pm »
"Show Namespace" and "Show Additional Parents" have no influence on the contents of the template box. I've submitted a feature request to make showing it an option like it is with attributes, operations a.s.o.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Class diagram: suppress parameters for template classes?
« Reply #3 on: April 21, 2008, 10:30:37 pm »
Not good news Frank...

I have some stuff that is 'pretty' now but will likely get unusable when I fill in the blanks for the parameters.

Please let us know if you get any traction at Sparx.

David
No, you can't have it!