Book a Demo

Author Topic: Namespaces (and element name uniqueness)  (Read 3520 times)

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Namespaces (and element name uniqueness)
« on: May 26, 2022, 09:25:19 pm »
II have the following question about namespaces. Let's assume that I have the following repository structure

Root node
-----Package/View 1
-----------Package 1.1
------------------Package 1.1.1
-----------------------Element 1
-----------------------Element 2
------------------Package 1.1.2
-----------------------Element 3
-----------------------Element 4
-----Package/View 2
-----------Package 2.1
------------------Package 2.1.1
-----------------------Element 5
-----------------------Element 6

Is there a way I can configure namespaces in Sparx to skip a level - e.g., I would like my namespace to look like Root:Package/View 1:Package 1.1:Element 1?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #1 on: May 26, 2022, 10:23:27 pm »
I don't think so.

q.

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #2 on: May 26, 2022, 10:33:37 pm »
Thanks Thomas, this is my working assumption but I still have the faint hope that somebody proves both of us wrong.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #3 on: May 27, 2022, 07:47:45 am »
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_domains/namespaces.html

Quote
To omit a subordinate Package from a namespace definition, select the  'Develop > Source Code > Options > Suppress Namespace' ribbon option; to include the Package in the namespace again, deselect the ribbon option.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #4 on: May 27, 2022, 05:34:15 pm »
So that's a new feature with V16, I guess.

q.

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #5 on: May 27, 2022, 05:57:21 pm »
Thank Eve. Thomas this option is available on v15 - please see https://sparxsystems.com/enterprise_architect_user_guide/15.0/model_domains/namespaces.html - but I think I tried it and did not appear to do what we wanted, although we will try again.

If the behaviour has changed on v16, it may give us another excuse to upgrade. At the moment we are waiting for v16.1.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Namespaces (and element name uniqueness)
« Reply #6 on: May 27, 2022, 08:27:46 pm »
I even discovered it in the 13.5 docs. Well, not really my subject... Sometimes it pays off to keep silent ;-)

q.