Book a Demo

Author Topic: Make association target role navigable by default  (Read 4904 times)

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Make association target role navigable by default
« on: January 28, 2009, 11:56:00 am »
Actually, I found the answer after a little searching, but I thought other people might be interested in the answer.

The problem: How do I make it so that when a draw a new association (e.g., from a class to an attribute class) the default is such that the target end is navigable?  (I want this to be the case for a Design Class Diagram.  I don't want this for a Domain Model Class Diagram.  I don't want to change this every time I draw an association!)

Answer: Go to Tools...Options...Links and check "Association default = source --> target" before working on a Design Class Diagram.  Return here and uncheck this before working on a Domain Model Class Diagram.

This begs the question: Should this option be a property of the diagram?  (I suggest it should.)

Paul

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Make association target role navigable by defa
« Reply #1 on: January 28, 2009, 10:30:44 pm »
Yes Paul, it should.

Or at least there should be the ability to set this for a diagram and have it override the global default (but for that diagram only).

Make the feature request. It seems that the few requests we've made so far have not convinced Sparx that there is enough support out here for this to be a priority.
No, you can't have it!

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Make association target role navigable by defa
« Reply #2 on: January 29, 2009, 03:25:48 am »
I submitted a feature request to Sparx.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Make association target role navigable by defa
« Reply #3 on: January 29, 2009, 09:14:47 am »
Quote
The problem: How do I make it so that when a draw a new association (e.g., from a class to an attribute class) the default is such that the target end is navigable?
In most cases, you can use the quicklinker and select "Directed Association". This is independent of the "Association default = source --> target" option setting.
The Sparx Team
[email protected]

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Make association target role navigable by defa
« Reply #4 on: January 29, 2009, 11:44:53 pm »
Thanks Neil,

I overlooked that.

Paul (et al), you might find this a more practical technique. If you are working with profiles - MDG Technologies to be more precise - you can customize how the quicklinker works with your elements. This can include both your own stereotyped elements and connectors, as well as core UML elements and connectors.

David
No, you can't have it!

Paul Lotz

  • EA User
  • **
  • Posts: 248
  • Karma: +1/-0
    • View Profile
Re: Make association target role navigable by defa
« Reply #5 on: January 30, 2009, 02:51:16 am »
The Quick Linker works well.  Thanks for the tip!

Paul