Skip to main content



      Home
Home » Modeling » UML2 Tools » Association classes
Association classes [message #469511] Tue, 06 March 2007 04:41 Go to next message
Eclipse UserFriend
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 09:59 Go to previous messageGo to next message
Eclipse UserFriend
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 06:16 Go to previous messageGo to next message
Eclipse UserFriend
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 09:09 Go to previous message
Eclipse UserFriend
> 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 09:59 Go to previous message
Eclipse UserFriend
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 06:16 Go to previous message
Eclipse UserFriend
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 09:09 Go to previous message
Eclipse UserFriend
> 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: Sat Jul 19 01:35:53 EDT 2025

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

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

Back to the top