|
Re: Association classes [message #469522 is a reply to message #469511] |
Tue, 20 March 2007 13:59 |
Michael Golubev 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 #584770 is a reply to message #469511] |
Tue, 20 March 2007 13:59 |
Michael Golubev 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!
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03398 seconds