Disappearing Association [message #476314] |
Sat, 07 February 2009 06:57  |
Eclipse User |
|
|
|
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 07:37  |
Eclipse User |
|
|
|
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 07:37  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03259 seconds