Author Topic: Limit package contents displayed  (Read 3794 times)

MichaelB123a

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Limit package contents displayed
« on: November 11, 2015, 10:52:05 pm »
Hi,

I'm creating a package diagram and am showing the contents of the packages, but I want to limit the contents that are displayed.

I keep all my Issues in Issues packages and have stereotyped them as 'IssuesPackage'. I then right-click on the package I'm displaying, select 'Feature & Compartment Visibility' and add IssuesPackage to the list of stereotyped features to hide. However, the Issues package is still visible.

I suppose I have two questions:
1. Are package contents not package features and therefore this stereotype hiding doesn't apply to contents?

2. If so, is there another way to constrain the displayed package contents?

Many thanks in advance for any help.

Michael

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Limit package contents displayed
« Reply #1 on: November 11, 2015, 11:36:03 pm »
Hmm. I'd regard that as bug. Since the Package also offers the "Hide Stereotypes" and actually does not do it is a candidate for a bug report (use link bottom right of this page).

What you can do is to to hide the package contents (diagram options) and show the elements as such inside the enlarged package.

q.
« Last Edit: November 11, 2015, 11:37:39 pm by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Limit package contents displayed
« Reply #2 on: November 12, 2015, 08:16:40 am »
Quote
1. Are package contents not package features and therefore this stereotype hiding doesn't apply to contents?
That's the answer you're likely to get.

Quote
2. If so, is there another way to constrain the displayed package contents?
The only filter that I know that does work is the diagram level setting for feature visibility by scope.

Which would be an argument to use when suggesting that the feature stereotype filters be applied to package contents. The complication is that stereotypes aren't displayed, which probably means they aren't loaded and available to test.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Limit package contents displayed
« Reply #3 on: November 12, 2015, 08:36:01 am »
Ah. Sparx Logic. Why does a package offer stereotype hiding if finally you argue it away to be not features being hidden ::) I mean then do not offer this dialog for packages.

q.
« Last Edit: November 12, 2015, 08:36:14 am by qwerty »

Sunshine

  • EA Practitioner
  • ***
  • Posts: 1324
  • Karma: +121/-10
  • Its the results that count
    • View Profile
Re: Limit package contents displayed
« Reply #4 on: November 12, 2015, 02:24:27 pm »
Instead of package you could use package model view. Drag the package onto the diagram and from the context menu choose package as a list. Then go into the chart details>source which displays the SQL code. Edit to filter out what you want.
NB there is bug where the amount that is displayed in the view is dependent on the zoom level of the diagram.
Happy to help
:)