Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Problem with associations between classes of different diagrams/packages
Problem with associations between classes of different diagrams/packages [message #473497] Thu, 27 March 2008 17:13 Go to next message
Eclipse UserFriend
Originally posted by: markus.heintz.iese.fhg.de

Hi

I got a UML2 Model that is distributed/spread over several diagrams/files.
Classes from one diagram have associations to classes of another diagram
(Packages).
I can not manage to show the associations between these classes in all
concerning diagrams.

Here is an example of what I'm trying to do:

Diagram D1 has the classes A
Diagram D2 has the classes X
An Assosiation a1 should connect class A and X ( A -----a1----> X),

To add the association a1 in Diagram D1 I created a shortcut of the
class X (X-shortcut) in diagram D1.
=> D1 = { A, X-shortcut }

Now I created the assosiation that connects class A and X
=> D1 = { A, X-shortcut, --a1--> }

Then I created in Diagram D2 a shortcut of class A (A-shortcut)
=> D2 = {X, A-shortcut}

How can I make association a1 appear in diagram D2?
Is this possible?

Thanks a lot for the help!
Markus
Re: Problem with associations between classes of different diagrams/packages [message #473505 is a reply to message #473497] Wed, 02 April 2008 09:23 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Markus,

Described situation is a known GMF-problem. It's described in bugzilla #149547
'Ecore diagram editor : relationships between elements from different packages'.
The problem appears when an association is contained in different package,
that's why DiagramUpdater cannot access it. If you really want to display
all the associations, you can create shortcut to the package that contains
association (create shortcut to the package of D1 in D2 in your case). But
this is really incorrect way to solve the problem.

Best wishes,
Tatiana.

> Hi
>
> I got a UML2 Model that is distributed/spread over several
> diagrams/files.
> Classes from one diagram have associations to classes of another
> diagram
> (Packages).
> I can not manage to show the associations between these classes in all
> concerning diagrams.
> Here is an example of what I'm trying to do:
>
> Diagram D1 has the classes A
> Diagram D2 has the classes X
> An Assosiation a1 should connect class A and X ( A
> -----a1----> X),
> To add the association a1 in Diagram D1 I created a shortcut of
> the
> class X (X-shortcut) in diagram D1.
> => D1 = { A, X-shortcut }
> Now I created the assosiation that connects class A and X => D1 = { A,
> X-shortcut, --a1--> }
>
> Then I created in Diagram D2 a shortcut of class A (A-shortcut)
> => D2 = {X, A-shortcut}
>
> How can I make association a1 appear in diagram D2? Is this possible?
>
> Thanks a lot for the help!
> Markus
Re: Problem with associations between classes of different diagrams/packages [message #474220 is a reply to message #473505] Tue, 08 April 2008 09:58 Go to previous message
Eclipse UserFriend
Originally posted by: markus.heintz.iese.fhg.de

Hi Tatiana

Thanks a lot for the answer!

Regards,
Markus

"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:6785c52641b88ca62cb205662cc@news.eclipse.org...
> Hello Markus,
>
> Described situation is a known GMF-problem. It's described in bugzilla
> #149547 'Ecore diagram editor : relationships between elements from
> different packages'.
> The problem appears when an association is contained in different package,
> that's why DiagramUpdater cannot access it. If you really want to display
> all the associations, you can create shortcut to the package that contains
> association (create shortcut to the package of D1 in D2 in your case). But
> this is really incorrect way to solve the problem.
> Best wishes,
> Tatiana.
>
>> Hi
>>
>> I got a UML2 Model that is distributed/spread over several
>> diagrams/files.
>> Classes from one diagram have associations to classes of another
>> diagram
>> (Packages).
>> I can not manage to show the associations between these classes in all
>> concerning diagrams.
>> Here is an example of what I'm trying to do:
>>
>> Diagram D1 has the classes A
>> Diagram D2 has the classes X
>> An Assosiation a1 should connect class A and X ( A
>> -----a1----> X),
>> To add the association a1 in Diagram D1 I created a shortcut of
>> the
>> class X (X-shortcut) in diagram D1.
>> => D1 = { A, X-shortcut }
>> Now I created the assosiation that connects class A and X => D1 = { A,
>> X-shortcut, --a1--> }
>>
>> Then I created in Diagram D2 a shortcut of class A (A-shortcut)
>> => D2 = {X, A-shortcut}
>>
>> How can I make association a1 appear in diagram D2? Is this possible?
>>
>> Thanks a lot for the help!
>> Markus
>
>
Re: Problem with associations between classes of different diagrams/packages [message #619645 is a reply to message #473497] Wed, 02 April 2008 09:23 Go to previous message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 530
Registered: July 2009
Senior Member
Hello Markus,

Described situation is a known GMF-problem. It's described in bugzilla #149547
'Ecore diagram editor : relationships between elements from different packages'.
The problem appears when an association is contained in different package,
that's why DiagramUpdater cannot access it. If you really want to display
all the associations, you can create shortcut to the package that contains
association (create shortcut to the package of D1 in D2 in your case). But
this is really incorrect way to solve the problem.

Best wishes,
Tatiana.

> Hi
>
> I got a UML2 Model that is distributed/spread over several
> diagrams/files.
> Classes from one diagram have associations to classes of another
> diagram
> (Packages).
> I can not manage to show the associations between these classes in all
> concerning diagrams.
> Here is an example of what I'm trying to do:
>
> Diagram D1 has the classes A
> Diagram D2 has the classes X
> An Assosiation a1 should connect class A and X ( A
> -----a1----> X),
> To add the association a1 in Diagram D1 I created a shortcut of
> the
> class X (X-shortcut) in diagram D1.
> => D1 = { A, X-shortcut }
> Now I created the assosiation that connects class A and X => D1 = { A,
> X-shortcut, --a1--> }
>
> Then I created in Diagram D2 a shortcut of class A (A-shortcut)
> => D2 = {X, A-shortcut}
>
> How can I make association a1 appear in diagram D2? Is this possible?
>
> Thanks a lot for the help!
> Markus
Re: Problem with associations between classes of different diagrams/packages [message #619657 is a reply to message #473505] Tue, 08 April 2008 09:58 Go to previous message
Eclipse UserFriend
Originally posted by: markus.heintz.iese.fhg.de

Hi Tatiana

Thanks a lot for the answer!

Regards,
Markus

"Tatiana Fesenko" <tatiana.fesenko@borland.com> wrote in message
news:6785c52641b88ca62cb205662cc@news.eclipse.org...
> Hello Markus,
>
> Described situation is a known GMF-problem. It's described in bugzilla
> #149547 'Ecore diagram editor : relationships between elements from
> different packages'.
> The problem appears when an association is contained in different package,
> that's why DiagramUpdater cannot access it. If you really want to display
> all the associations, you can create shortcut to the package that contains
> association (create shortcut to the package of D1 in D2 in your case). But
> this is really incorrect way to solve the problem.
> Best wishes,
> Tatiana.
>
>> Hi
>>
>> I got a UML2 Model that is distributed/spread over several
>> diagrams/files.
>> Classes from one diagram have associations to classes of another
>> diagram
>> (Packages).
>> I can not manage to show the associations between these classes in all
>> concerning diagrams.
>> Here is an example of what I'm trying to do:
>>
>> Diagram D1 has the classes A
>> Diagram D2 has the classes X
>> An Assosiation a1 should connect class A and X ( A
>> -----a1----> X),
>> To add the association a1 in Diagram D1 I created a shortcut of
>> the
>> class X (X-shortcut) in diagram D1.
>> => D1 = { A, X-shortcut }
>> Now I created the assosiation that connects class A and X => D1 = { A,
>> X-shortcut, --a1--> }
>>
>> Then I created in Diagram D2 a shortcut of class A (A-shortcut)
>> => D2 = {X, A-shortcut}
>>
>> How can I make association a1 appear in diagram D2? Is this possible?
>>
>> Thanks a lot for the help!
>> Markus
>
>
Previous Topic:Use profile UML
Next Topic:profile from two meta-model
Goto Forum:
  


Current Time: Thu Apr 25 22:56:01 GMT 2024

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

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

Back to the top