Book a Demo

Author Topic: Show Name Space in class diagram  (Read 8705 times)

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
Show Name Space in class diagram
« on: December 10, 2007, 04:33:30 am »
Hello,

when we activate the show name space checkbox in the diagram options, the class names in the class diagrams are prefixed with its immediate namepspace parent node where it is declared, but not with its namespace, as the option says.

Is there a way to show the complete namespace?

Because we have a couple of subnodes called e.g. PresLayer.
So if one has declared a class in it, you see PresLayer::MyClass in the class diagram, but this info is pretty useless, because this is the info you will see for every classes on these subnode level, regardless if the class belongs to A::PresLayer or B::PresLayer or C::PresLayer, ...

This is not helpfull!
We want to see the complete namespace or nothing.
This subnode is pretty useless.

Regards
Michael
« Last Edit: January 16, 2008, 11:55:07 pm by mizd »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show Name Space in class diagram
« Reply #1 on: December 10, 2007, 05:05:23 am »
For some time EA has only displayed the immediate parent of an element. [Actually, I think this goes back to the beginning or EA. But for some time people have been asking how to display the entire ownership path, and the answer has come back that you can only display the immediate parent.]

The current terminology on the diagram Properties dialog makes it seem like the namespace will be displayed, but you still get the [immediate] owning package. Not much help.

Maybe EA is now searching for an explicitly defined namespace, and defaulting to the name of the immediate parent package. Try setting a package higher in the owning hierarchy to be a namespace root. Perhaps EA will then display that package's name when you set the option.

Even if this works, I don't think Sparx has tackled (or even addressed) the whole issue of ownership (or namespace) hierarchy.

Sigh...

Now is the time to submit a feature request. You know the drill. I'd certainly support it!

David
No, you can't have it!

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
Re: Show Name Space in class diagram
« Reply #2 on: December 10, 2007, 05:37:32 am »
Hello David,

thank you for your posting.

I will write a feature request.

Regards
Michael

thomaskilian

  • Guest
Re: Show Name Space in class diagram
« Reply #3 on: December 10, 2007, 06:26:53 am »
Add my vote. The namespace must be displayed from the according root on. Eg. I have component diagrams where I have nodes in a certain location. Fine if the package name is displayed, but when I need to sort it out according to HW and I have a sub-directory then it's simply scrap.
« Last Edit: December 10, 2007, 06:27:35 am by thomaskilian »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show Name Space in class diagram
« Reply #4 on: December 10, 2007, 08:09:07 am »
And mine! [As promised above.]
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: Show Name Space in class diagram
« Reply #5 on: December 10, 2007, 01:02:33 pm »
I daren't add my vote...

Paolo
« Last Edit: December 10, 2007, 01:02:57 pm by PaoloFCantoni »
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show Name Space in class diagram
« Reply #6 on: December 10, 2007, 05:37:25 pm »
OK Paolo, I'll dare you...
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: Show Name Space in class diagram
« Reply #7 on: December 11, 2007, 12:34:39 am »
Quote
OK Paolo, I'll dare you...
Rising to the challenge... Gets my vote!

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

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
Re: Show Name Space in class diagram
« Reply #8 on: December 17, 2007, 11:30:44 pm »
Hello,

in fact I wrote a bug report, because in my point of view it is a bug, that the dialog tells us to show the namespace, but in reality only the parent node of the namespace is shown.

Nevertheless, Sparx converted the bug report into a feature request.

-----------------
We have recorded this as a feature request.
-----------------

:'(
« Last Edit: December 17, 2007, 11:30:59 pm by mizd »

thomaskilian

  • Guest
Re: Show Name Space in class diagram
« Reply #9 on: December 18, 2007, 02:59:00 am »
As long as there is no contradicting documentation you won't be able to claim it as a bug. Thus Sparx is unfortunately right in calling it a feature. However, let's hope they tackle that one soon.

Mr. Sanders

  • EA User
  • **
  • Posts: 187
  • Karma: +0/-0
  • Dilbert for president
    • View Profile
Re: Show Name Space in class diagram
« Reply #10 on: December 18, 2007, 03:10:43 am »
Hello Thomas,

may be I get them this way:

There is a namespace dialog in EA, where the complete namespaces are shown like

A.B.C.D. ...

But in the diagram options they are talking about namespaces too, but what is shown is only the parent node of the current element, which is inconsistent to the namespace dialog and even wrong in my point of view.

Michael
« Last Edit: January 16, 2008, 11:56:32 pm by mizd »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Show Name Space in class diagram
« Reply #11 on: December 18, 2007, 06:38:25 am »
Quite some time ago there was a post having something to do with displaying the entire namespace path.

IIRC one of the Sparxians confirmed that EA will only display the immediate parent, not the entire path.

I have not seen anything in release notes that suggests this has changed in the (many) versions since.

David
No, you can't have it!

Ale

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Show Name Space in class diagram
« Reply #12 on: January 16, 2008, 11:44:17 pm »
Add my vote too, quite ridiculous the way it does (not) work now...

/Ale