Book a Demo

Author Topic: displaying throws tagged values in a class diagram  (Read 4173 times)

uml.modeller

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
displaying throws tagged values in a class diagram
« on: September 29, 2009, 03:31:22 am »
Hi,

I'm trying to find a way to display the list of exceptions thrown by a method in a class diagram. In the method properties dialog exceptions are stored in a tagged value, but how do I get these to display in my class diagram?

Thanks,

Jonathan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying throws tagged values in a class dia
« Reply #1 on: September 29, 2009, 03:30:15 pm »
Right-Click on the diagram, choose properties, go to the "Elements" tab and check "tags"

Geert

uml.modeller

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: displaying throws tagged values in a class dia
« Reply #2 on: September 29, 2009, 10:09:49 pm »
I had tried that but unfortunately it doesn't work. Selecting show tags in the diagram properties dialog only displays classifier-level tags. There appears to be no way to enable the display of method or, indeed, attribute level tags.

The only way I can find is a really horrible dirty hack, and that's to append a pseudo properties string to the return type for example

+ operation1 : void

becomes

+ operation1 : void {exceptions=Exception1, Exception2}

Of course this has the nasty side effect of corrupting the method signature, but for diagramming purposes I can find no other way.

any suggestions?

Jonathan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying throws tagged values in a class dia
« Reply #3 on: September 30, 2009, 03:45:31 pm »
Jonathan,

Do a search for xuml. I think there was a topic this or last week that somehow managed to show something next to the features of a class.
It's a hack too, but I think its going to be less ugly.

Geert

uml.modeller

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: displaying throws tagged values in a class dia
« Reply #4 on: September 30, 2009, 06:37:36 pm »
Hi,

Thanks for the suggestion. Unfortunately it looks as if the xUML tagged value feature only applies to attributes, and not operations.

Regards,

Jonathan

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying throws tagged values in a class dia
« Reply #5 on: September 30, 2009, 06:46:48 pm »
too bad.

Have you already sent a feature request to Sparx?

Geert

uml.modeller

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: displaying throws tagged values in a class dia
« Reply #6 on: September 30, 2009, 07:13:10 pm »
No, but I will do. Is there anything special I need to know to do that, or is it all pretty self explanatory on their website?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: displaying throws tagged values in a class dia
« Reply #7 on: September 30, 2009, 07:27:51 pm »
We have a custom here to add a topic in the "Suggestions and Requests" section of the forum and add a link to that topic in the feature request. That allows other users to comment and vote. We hope that Sparx takes the number of votes into account when planning new features.
To request a feature use the link at the bottom of the page http://www.sparxsystems.com/support/feature_request.html

Geert