Author Topic: Suppressing New Links On Class Diagrams  (Read 5196 times)

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Suppressing New Links On Class Diagrams
« on: October 02, 2003, 03:08:28 am »
It would be nice to be able to have an option to suppress the showing of links between classes which are not made in the diagram itself.

Phil_Prasek

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Suppressing New Links On Class Diagrams
« Reply #1 on: October 05, 2003, 07:59:44 pm »
Yes, I found this to be an issue as well.  I had a set of classes on one diagram, then via a different diagram flushed out the class.  When I went back to the first diagram all the new relationships I added on the second diagram showed up on the first diagram.  I had to go and delete all of the new relationship lines from the first diagram manually.  

I seem to remember the inverse functionality in Rose (i.e. links in the diagram only showed up when you dropped a class to the page, but once a class was on the page you had to manually add those links to the diagram even though you had already added them via a different diagram).  

It would be even cooler if you could select what links were displayed for a class on a per diagram basis (e.g. have a "Displayed Links" option that allowed you to select which links for a specified class should be shown in a specific diagram.  

Then, if you wanted to display links for a class in one diagram that you had added to that class in another diagram, you could just go to the diagram, right click context menu select the links that you wanted to be displayed.

-Phil

mbc

  • EA User
  • **
  • Posts: 237
  • Karma: +1/-0
  • Embedded software developer
    • View Profile
Re: Suppressing New Links On Class Diagrams
« Reply #2 on: October 06, 2003, 04:18:05 am »
If I understand your question right, this may help you:

1. Right-click on the relationship and select "Hide connector"

or

2. In the menu Diagram, select "Set visible relations".

This doesn't stop new relationships from appearing in all diagrams, though. However, I am not sure that I'd want to have "secret" relationships unless I specifically make them so.

Mikkel

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: Suppressing New Links On Class Diagrams
« Reply #3 on: October 07, 2003, 12:33:49 am »
Hi Mikkel, I would not want to have 'secret' associations either!  I am aware of both of the options you mentioned, but they do not do the job.  Let's say you have two classes which are both on two diagrams.  One diagram shows, say, an overview of your system while the other shows a more detailed view of some part of the system.  You are working in the detailed view and add a new association between the classes.  The new association will appear on the overview diagram.  You have to remember to go the the overview and hide the association.  This is a pain to have to do - indeed, I never remember to do it!  The behaviour that Phil describes above would solve the problem.

Sean

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: Suppressing New Links On Class Diagrams
« Reply #4 on: October 09, 2003, 04:24:01 am »
The good folks at Sparx have jsut added a feature to allow the hiding of an association in 'all other diagrams' to the association's right-cllick menu.   :)