Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 Tools » Association classes
Association classes [message #469511] Tue, 06 March 2007 09:41 Go to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
Hello all,

I would like to do an association classe like this with GMF :

http://www.agilemodeling.com/images/style/classDiagramAssoci ationClasses.gif

I tried uml2tools but without finding a way to link the associated class
to the existing link of the other classes.

So:

1) did you manage to implement it ?

2) any ideas how could I have this done with GMF (i.e it's just linking
a link to another and to an object...) ?

Thanks in advance!
Re: Association classes [message #469522 is a reply to message #469511] Tue, 20 March 2007 13:59 Go to previous messageGo to next message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Youmm P.,

Unfortunately, links-to-links are not supported directly by GMF yet.
This is the reason why we did not yet implemented Association classes like
in your screenshot.

However, there is known way to workaround this.

With Uml2Tools M5 you can take a look into the generalization sets.
To see one, create 3 classes (A, B, C), draw generalization A->B,
and finally one more generalization from C to the link between A and B.

Custom code (see org.eclipse.uml2.diagram.clazz.part.CreateGeneralizationLink Tool
class) handles this
by creating a new notation node for generalization set GS, new link [C-GS]
and finally replacing the old link A-B with pair of [A-GS, GS-B].

The similar way will be used to re-implement association classes in M6, using
"rhomb" association class notation as
an intermediate inserted node (analog of GS in the sample above).

Regards,
Michael


> Hello all,
>
> I would like to do an association classe like this with GMF :
>
> http://www.agilemodeling.com/images/style/classDiagramAssoci ationClass
> es.gif
>
> I tried uml2tools but without finding a way to link the associated
> class to the existing link of the other classes.
>
> So:
>
> 1) did you manage to implement it ?
>
> 2) any ideas how could I have this done with GMF (i.e it's just
> linking a link to another and to an object...) ?
>
> Thanks in advance!
>
Re: Association classes [message #469947 is a reply to message #469522] Fri, 30 March 2007 10:16 Go to previous messageGo to next message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
Michael Golubev wrote:
> Hello Youmm P.,
>
> Unfortunately, links-to-links are not supported directly by GMF yet.
> This is the reason why we did not yet implemented Association classes
> like in your screenshot.

You can vote for this bug/feature here :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=177758

However I didn't manage to do what you said with Eclipse M5.
Re: Association classes [message #469948 is a reply to message #469947] Wed, 04 April 2007 13:09 Go to previous message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=177758
>

The implementation is in progress you can follow it here :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=180786
Re: Association classes [message #584770 is a reply to message #469511] Tue, 20 March 2007 13:59 Go to previous message
Michael Golubev is currently offline Michael GolubevFriend
Messages: 383
Registered: July 2009
Senior Member
Hello Youmm P.,

Unfortunately, links-to-links are not supported directly by GMF yet.
This is the reason why we did not yet implemented Association classes like
in your screenshot.

However, there is known way to workaround this.

With Uml2Tools M5 you can take a look into the generalization sets.
To see one, create 3 classes (A, B, C), draw generalization A->B,
and finally one more generalization from C to the link between A and B.

Custom code (see org.eclipse.uml2.diagram.clazz.part.CreateGeneralizationLink Tool
class) handles this
by creating a new notation node for generalization set GS, new link [C-GS]
and finally replacing the old link A-B with pair of [A-GS, GS-B].

The similar way will be used to re-implement association classes in M6, using
"rhomb" association class notation as
an intermediate inserted node (analog of GS in the sample above).

Regards,
Michael


> Hello all,
>
> I would like to do an association classe like this with GMF :
>
> http://www.agilemodeling.com/images/style/classDiagramAssoci ationClass
> es.gif
>
> I tried uml2tools but without finding a way to link the associated
> class to the existing link of the other classes.
>
> So:
>
> 1) did you manage to implement it ?
>
> 2) any ideas how could I have this done with GMF (i.e it's just
> linking a link to another and to an object...) ?
>
> Thanks in advance!
>
Re: Association classes [message #587271 is a reply to message #469522] Fri, 30 March 2007 10:16 Go to previous message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
Michael Golubev wrote:
> Hello Youmm P.,
>
> Unfortunately, links-to-links are not supported directly by GMF yet.
> This is the reason why we did not yet implemented Association classes
> like in your screenshot.

You can vote for this bug/feature here :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=177758

However I didn't manage to do what you said with Eclipse M5.
Re: Association classes [message #587284 is a reply to message #469947] Wed, 04 April 2007 13:09 Go to previous message
Youmm P. is currently offline Youmm P.Friend
Messages: 140
Registered: July 2009
Senior Member
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=177758
>

The implementation is in progress you can follow it here :
https://bugs.eclipse.org/bugs/show_bug.cgi?id=180786
Previous Topic:UML2Tools source diagrams
Next Topic:Uml2Tools diagram definition files are avaiable now
Goto Forum:
  


Current Time: Tue Mar 19 04:38:43 GMT 2024

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

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

Back to the top