Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Disappearing Association
Disappearing Association [message #476314] Sat, 07 February 2009 11:57 Go to next message
John Colgrave is currently offline John ColgraveFriend
Messages: 42
Registered: July 2009
Member
I am using 0.9.0M4 on Windows.

I create a new Project and create two Models, ModelOne and ModelTwo.

I create a Class Diagram for ModelOne and create a class named ClassOne
and add a navigable relationship to itself.

I create a Class Diagram for ModelTwo and create a Shortcut to ClassOne
in ModelOne. I then create ClassTwo and add a navigable relationship to
ClassOne. Everything looks OK in the Class Diagram for ModelTwo.

If I then close the Class Diagram for ModelTwo and open it again, the
association between ClassTwo and ClassOne has disappeared from the diagram.

I also noticed that the Class Diagram is modified as soon as it is
opened. This does not happen when I open the Class Diagram that just
contains ClassOne. The Class Diagram for ModelOne just shows ClassOne
and the association to itself.

What is the expected behaviour?

Looking in the two .uml files, the .uml file for ModelOne contains two
associations even though the second association was added to the class
diagram for ModelTwo. The .uml file for ModelTwo just contains ClassTwo
and an ownedAttribute named "dst" (I left the default names) of type
ClassOne. There is no association in this .uml file.

What is the expected behaviour here?

If someone can give me the necessary details I am happy to raise defects
for these issues.

John Colgrave
Re: Disappearing Association [message #476318 is a reply to message #476314] Wed, 11 February 2009 12:37 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello John,

> I am using 0.9.0M4 on Windows.
>
> I create a new Project and create two Models, ModelOne and ModelTwo.
>
> I create a Class Diagram for ModelOne and create a class named
> ClassOne and add a navigable relationship to itself.
>
> I create a Class Diagram for ModelTwo and create a Shortcut to
> ClassOne in ModelOne. I then create ClassTwo and add a navigable
> relationship to ClassOne. Everything looks OK in the Class Diagram for
> ModelTwo.
>
> If I then close the Class Diagram for ModelTwo and open it again, the
> association between ClassTwo and ClassOne has disappeared from the
> diagram.
>
> I also noticed that the Class Diagram is modified as soon as it is
> opened. This does not happen when I open the Class Diagram that just
> contains ClassOne. The Class Diagram for ModelOne just shows ClassOne
> and the association to itself.
>
> What is the expected behaviour?

This is a bug. I submitted #264509 'Association to shortcut element dissapears'.
You can track it for the cahnges.

>
> Looking in the two .uml files, the .uml file for ModelOne contains two
> associations even though the second association was added to the class
> diagram for ModelTwo. The .uml file for ModelTwo just contains
> ClassTwo and an ownedAttribute named "dst" (I left the default names)
> of type ClassOne. There is no association in this .uml file.
>
> What is the expected behaviour here?

The association is placed at ModelOne, because its source is ClassOne, and
it is located at ModelOne.

This topic (source and target ends of an Association) was discussed in this
newgroup before: news://news.eclipse.org/f1b2el$90u$1@build.eclipse.org

Best wishes,
Tanya.
Re: Disappearing Association [message #623600 is a reply to message #476314] Wed, 11 February 2009 12:37 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello John,

> I am using 0.9.0M4 on Windows.
>
> I create a new Project and create two Models, ModelOne and ModelTwo.
>
> I create a Class Diagram for ModelOne and create a class named
> ClassOne and add a navigable relationship to itself.
>
> I create a Class Diagram for ModelTwo and create a Shortcut to
> ClassOne in ModelOne. I then create ClassTwo and add a navigable
> relationship to ClassOne. Everything looks OK in the Class Diagram for
> ModelTwo.
>
> If I then close the Class Diagram for ModelTwo and open it again, the
> association between ClassTwo and ClassOne has disappeared from the
> diagram.
>
> I also noticed that the Class Diagram is modified as soon as it is
> opened. This does not happen when I open the Class Diagram that just
> contains ClassOne. The Class Diagram for ModelOne just shows ClassOne
> and the association to itself.
>
> What is the expected behaviour?

This is a bug. I submitted #264509 'Association to shortcut element dissapears'.
You can track it for the cahnges.

>
> Looking in the two .uml files, the .uml file for ModelOne contains two
> associations even though the second association was added to the class
> diagram for ModelTwo. The .uml file for ModelTwo just contains
> ClassTwo and an ownedAttribute named "dst" (I left the default names)
> of type ClassOne. There is no association in this .uml file.
>
> What is the expected behaviour here?

The association is placed at ModelOne, because its source is ClassOne, and
it is located at ModelOne.

This topic (source and target ends of an Association) was discussed in this
newgroup before: news://news.eclipse.org/f1b2el$90u$1@build.eclipse.org

Best wishes,
Tanya.
Previous Topic:Symbols for different Association kinds
Next Topic:[Announce] MDT UML2TOOLS 0.9.0M5 is available
Goto Forum:
  


Current Time: Thu Apr 25 02:18:28 GMT 2024

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

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

Back to the top