Book a Demo

Author Topic: Mark connectors visible or not by stereotype  (Read 2905 times)

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Mark connectors visible or not by stereotype
« on: March 15, 2008, 09:46:37 am »
Given a diagram with a bunch of components and a bunch of connectors of various stereotypes, is there any built-in functionality at the diagram level to set whether or not a particular stereotype is visible.  I thought I recalled a thread on something like this, but can't find it.  I know that I can hide individual elements and connectors and I know about setting feature visibility on an individual element to show different aspects of it, but I am thinking of something that operates on the whole diagram.

If it isn't standard, has anyone done an add-in like this?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Mark connectors visible or not by stereotype
« Reply #1 on: March 15, 2008, 09:57:32 am »
The short answer is no.

There are several variations on this theme, but they tend towards "no" in every case.

You can turn off stereotype display for all objects on all diagrams, though this might not affect attributes and operations (I cannot remember).

You can turn off stereotype display in the Project Browser, but it appears to be all or nothing.

You can turn off feature stereotype display in the Set Feature Visibility panel, but only for selected elements, and only on a diagram-by-diagram basis.

You can turn off display of the «column» attribute of attributes on a global basis, again all or nothing.

But that's about it.

I have brought some of the 'missing' variations up with Sparx, but have not heard back on any of these as yet.

David
No, you can't have it!

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Mark connectors visible or not by stereotype
« Reply #2 on: March 15, 2008, 10:10:37 am »
So, does it seem straightforward to create an add-in that would notice all of the stereotypes in a diagram and then provide an option to make the connectors hidden or visible according to a check mark?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Mark connectors visible or not by stereotype
« Reply #3 on: March 15, 2008, 08:59:33 pm »
Yes Thomas,

Or at least it would certainly make sense to, whether or not it was obvious.

Given how EA acts when there are connectors between diagram objects beyond those you explicitly include in a diagram, this makes even more sense. You can have EA suppress the connectors themselves based on specific criteria.

This latter trick takes some work - EA does not store all connector information in the schema; it infers some each time a diagram is displayed, sometimes incorrectly - but it can be done.

As you can guess, I've done this in past.

David
No, you can't have it!