Book a Demo

Author Topic: Display Varnames in Methods - Class Diagram  (Read 2974 times)

Daniel_Mayer

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Display Varnames in Methods - Class Diagram
« on: March 31, 2009, 10:03:43 am »
Hi Guys,

I use the Trial of Sparx, it's a nice software, but I have a problem.

When I designed my UML classes, I can't found an option to activate, that in the diagram, you can see the name of the parameters.

For example, so I see it in Sparx:
foobar(int, String): String

But I would like to see it:
foobar(foo: int, bar: String): String

I have typed the name and vartype of parameter, but I only see the vartype in diagram, not the name AND the vartype.

Thank you in advance for help.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Display Varnames in Methods - Class Diagram
« Reply #1 on: March 31, 2009, 11:16:43 pm »
Hi Daniel,

This should be no problem, once you know where to look.

Open your diagram, then invoke the diagram properties dialog; the F5 shortcut will do this for you. Click the Features tab. There are two drop-down lists at the bottom of the page. These control what is displayed for attributes and parameters. It sounds like you have the default settings, which would not show everything.

You might also want to try both settings for the Show Property String setting (higher on the page, in the left-side column) to see which way you prefer.

EA will remember the settings you choose on this page; these will become the default for new diagrams. Note that EA will not go back and change any diagrams you've already created. You will have to change these yourself. Likewise, you can reset any of the options for individual future diagrams after you have created them.

HTH, David
No, you can't have it!

Daniel_Mayer

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Display Varnames in Methods - Class Diagram
« Reply #2 on: April 01, 2009, 03:07:06 am »
Wow it works, thank you very much, I was so despaired, that I've not found these option.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Display Varnames in Methods - Class Diagram
« Reply #3 on: April 01, 2009, 08:16:14 am »
No problem,

And don't feel bad. EA is a big product; it can take a lot of work to find something. Even then you might not recognize the thing you're looking for until you try it out. [And who's got the time to try everything?]
No, you can't have it!