Book a Demo

Author Topic: Scope of packages  (Read 13346 times)

KP Enterprise Architecture

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Scope of packages
« on: April 13, 2013, 02:14:16 am »
I have the following situation: I have a package that contains other packages.  I want to indicate that some of the contained packages have public scope but others are private or protected.  The default is public.  But I can't seem to find a way change the default.  Scope does not show up in properties, like it does for classes.  I found advice that seems to work for attributes in the help file, which involves selecting the item on a diagram on which it appears, deleting it and then typing it back in with the right scope, but I'm not able to do that with a package.

Anyone found a way to set the scope (aka visibility) of a package?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Scope of packages
« Reply #1 on: April 13, 2013, 02:50:32 am »
There aren't too many alternatives.
  • stereotype all packages and write a shape script
  • use a tagged value and show the tags compartment
  • write an add-in that colors packages according to their scope

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Scope of packages
« Reply #2 on: April 15, 2013, 08:42:46 am »
If all you are wanting is to set the visibility/scope. It's available in the docked properties window. (Element | Properties Window) (Alt+1)

If you're wanting to display it on a diagram, you have the options qwerty suggested or to drop the parent package onto a diagram showing children.

KP Enterprise Architecture

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Scope of packages
« Reply #3 on: April 24, 2013, 02:11:15 am »
That works, Simon.

I still question why it is not available to set in the properties dialog.  Scope for classes can be set that way.