Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Cannot find UML Class Diagram simple directed assocation
Cannot find UML Class Diagram simple directed assocation [message #476574] Thu, 02 July 2009 23:02 Go to next message
Jake  is currently offline Jake Friend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I'm a fairly new user of the Eclipse UML2Tools project, and I have a very
basic question which I have nonetheless been having trouble with: how can
I create a simple directed association between two classes? By "simple,
directed association", I mean, given two classes, that one draws a
connection from source to target; the source anchor is undecorated, while
the target anchor has an arrow facing the target. The closes thing I have
been able to find in this regard is the navigable association
relationship, but this adds something to the source anchor. I feel like I
must be missing something obvious, and I would greatly appreciate it if
anyone could help guide me on this.

Thanks,

Jake
Re: Cannot find UML Class Diagram simple directed assocation [message #476575 is a reply to message #476574] Fri, 03 July 2009 19:05 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Jake,

You created a simple directed association in a correct way. The cross at
the source end indicates that the end is not navigable.

Now three options are available in the preferences page in order to manage
arrows/crosses:
-Show all arrows and x’s.
-Suppress all arrows and x’s.
-Show one-way navigibility only

Howver, I've created a bug #282401 'Allow to show/hide arrows, crosses and
dots for a particular association', you can track it for the update.

Best wishes,
Tanya.

> Hi,
>
> I'm a fairly new user of the Eclipse UML2Tools project, and I have a
> very basic question which I have nonetheless been having trouble with:
> how can I create a simple directed association between two classes? By
> "simple, directed association", I mean, given two classes, that one
> draws a connection from source to target; the source anchor is
> undecorated, while the target anchor has an arrow facing the target.
> The closes thing I have been able to find in this regard is the
> navigable association relationship, but this adds something to the
> source anchor. I feel like I must be missing something obvious, and I
> would greatly appreciate it if anyone could help guide me on this.
>
> Thanks,
>
> Jake
>
Re: Cannot find UML Class Diagram simple directed assocation [message #476576 is a reply to message #476575] Sat, 04 July 2009 16:10 Go to previous messageGo to next message
Jake  is currently offline Jake Friend
Messages: 17
Registered: July 2009
Junior Member
Thank you Tatiana, I believe that was exactly what I needed to know.

Jake
Re: Cannot find UML Class Diagram simple directed assocation [message #511243 is a reply to message #476576] Sun, 31 January 2010 18:07 Go to previous messageGo to next message
Jake  is currently offline Jake Friend
Messages: 17
Registered: July 2009
Junior Member
Hi,

Sorry to revive an old post, but I've seen at least one other post referencing this one, and I wanted to just make it clear that I never did discover how to draw simple directed associations with UML2Tools. No combination of the options you mentioned has allowed me to do this, so I'm still quite confused as to whether this is possible. Does UML2Tools support drawing simple directed assocations?

Please let me know what you think. Thanks,

Jake
Re: Cannot find UML Class Diagram simple directed assocation [message #529218 is a reply to message #476574] Fri, 23 April 2010 13:50 Go to previous messageGo to next message
Albert Tumanov is currently offline Albert TumanovFriend
Messages: 2
Registered: July 2009
Junior Member
I have struggled with this as well and found the solution.

1) in Preferences, set "Show one-way navigation only" or "Show all arrows and X's"
2) choose 2 classes and create association between them
3) select the association and look into the Properties view
4) in the Core tab, you will see "Member end" = "<Property> src:Class1, <Property> dst : Class2"
5) select the "Navigable owned end" and set its value to "<Property> dst : Class2"
6) save, close the diagram and reopen

Now you will see "x" on the Class1 side and arrow on the Class2 side.
Re: Cannot find UML Class Diagram simple directed assocation [message #624513 is a reply to message #476574] Fri, 03 July 2009 19:05 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Jake,

You created a simple directed association in a correct way. The cross at
the source end indicates that the end is not navigable.

Now three options are available in the preferences page in order to manage
arrows/crosses:
-Show all arrows and x’s.
-Suppress all arrows and x’s.
-Show one-way navigibility only

Howver, I've created a bug #282401 'Allow to show/hide arrows, crosses and
dots for a particular association', you can track it for the update.

Best wishes,
Tanya.

> Hi,
>
> I'm a fairly new user of the Eclipse UML2Tools project, and I have a
> very basic question which I have nonetheless been having trouble with:
> how can I create a simple directed association between two classes? By
> "simple, directed association", I mean, given two classes, that one
> draws a connection from source to target; the source anchor is
> undecorated, while the target anchor has an arrow facing the target.
> The closes thing I have been able to find in this regard is the
> navigable association relationship, but this adds something to the
> source anchor. I feel like I must be missing something obvious, and I
> would greatly appreciate it if anyone could help guide me on this.
>
> Thanks,
>
> Jake
>
Re: Cannot find UML Class Diagram simple directed assocation [message #624514 is a reply to message #476575] Sat, 04 July 2009 16:10 Go to previous messageGo to next message
Jake  is currently offline Jake Friend
Messages: 17
Registered: July 2009
Junior Member
Thank you Tatiana, I believe that was exactly what I needed to know.

Jake
Re: Cannot find UML Class Diagram simple directed assocation [message #625484 is a reply to message #476576] Sun, 31 January 2010 18:07 Go to previous messageGo to next message
Jake  is currently offline Jake Friend
Messages: 17
Registered: July 2009
Junior Member
Hi,

Sorry to revive an old post, but I've seen at least one other post referencing this one, and I wanted to just make it clear that I never did discover how to draw simple directed associations with UML2Tools. No combination of the options you mentioned has allowed me to do this, so I'm still quite confused as to whether this is possible. Does UML2Tools support drawing simple directed assocations?

Please let me know what you think. Thanks,

Jake
Re: Cannot find UML Class Diagram simple directed assocation [message #625614 is a reply to message #476574] Fri, 23 April 2010 13:50 Go to previous message
Albert Tumanov is currently offline Albert TumanovFriend
Messages: 2
Registered: July 2009
Junior Member
I have struggled with this as well and found the solution.

1) in Preferences, set "Show one-way navigation only" or "Show all arrows and X's"
2) choose 2 classes and create association between them
3) select the association and look into the Properties view
4) in the Core tab, you will see "Member end" = "<Property> src:Class1, <Property> dst : Class2"
5) select the "Navigable owned end" and set its value to "<Property> dst : Class2"
6) save, close the diagram and reopen

Now you will see "x" on the Class1 side and arrow on the Class2 side.
Previous Topic:Removal of System Sequence Diagrams from EMT
Next Topic:Need Help Naming Sequence Diagram Message
Goto Forum:
  


Current Time: Fri Mar 29 15:36:52 GMT 2024

Powered by FUDForum. Page generated in 0.01810 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top