Book a Demo

Author Topic: How to filter out Actors from Package  (Read 3516 times)

Taz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Imagine, sun, beach and financial freedom
    • View Profile
How to filter out Actors from Package
« on: February 27, 2008, 03:05:43 am »
I like to know if it is possible to filter out individual element types like actors, Initial and Final symbols, etc, from showing in a Package.  All I want to see are relevant information like the Use Cases, otherwise it ends up to cluttered.  

I noticed that in the "Set Feature Visibility" one can hide stereotyped features, so I added a stereotype to each Actor called "worker", and then put worker in as a stereotype to hide, but they still show up in the package.  

Ideally I would like an option where I can for example specifiy to only show Use Cases. Is this possible, and if not, is there anything that can be done?  

Thanks

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to filter out Actors from Package
« Reply #1 on: February 27, 2008, 03:10:43 am »
I suppose you could set the visibility of the elements, then filter on that.

Or you could create a diagram where you added only the elements you want to see. Try dragging the first element onto the diagram. Then right-click the element and from the context menu choose Add | Related Elements.

David
No, you can't have it!

Taz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Imagine, sun, beach and financial freedom
    • View Profile
Re: How to filter out Actors from Package
« Reply #2 on: February 27, 2008, 03:32:44 am »
How do you do filter on visibility of elements?  I just tried the following step:

1. I opened the Use Case Diagram in the package.
2. Selected an Actor and clicked "Set Feature Visibility"
3. Deselected all Attribute and Operation Visibility
4. Also selected "Hide Object Runstate in current diagram" for good measure
5. Saved the changes
6. Closed and Re-opened the parent package. Actor is still visible.

Is there anything else I have to do?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to filter out Actors from Package
« Reply #3 on: February 27, 2008, 05:52:38 am »
No, that's not quite it.

The Feature Visibility setting is for displaying UML "features" like attributes and operations, not elements.

Open an element properties dialog (for a class, for example) and change the visibility - that's the Scope drop-down - of the element. I think you can filter what displays in packages by visibility (i.e. scope).

David
No, you can't have it!

Taz

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
  • Imagine, sun, beach and financial freedom
    • View Profile
Re: How to filter out Actors from Package
« Reply #4 on: February 28, 2008, 10:25:04 pm »
Yes I thought so much. Looking at the scope option, I guess I could set all actors as private and filter on that.   Thanks for the tip

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to filter out Actors from Package
« Reply #5 on: February 28, 2008, 10:50:42 pm »
That's what I was getting at Taz,

It's a kludge at best, but it will likely work. You might have to play around with display options on the diagram, or the Tools | Options | Diagram (or Objects) dialog.

For presentation purposes this might be your best option. Just make sure that the scope indicators don't get propagated into code generation without doing some testing first.

David
No, you can't have it!