Creating an AssociationClass [message #477426] |
Thu, 22 May 2008 14:50  |
Eclipse User |
|
|
|
Hi NG
This is perhaps a silly question, but I don't realy know how to create an
AssociationClass and connect it with the both associated classes.
How can I do this and where do I find documentation or help about such silly
topics?
Thanx and regards
Erny
|
|
|
Re: Creating an AssociationClass [message #477458 is a reply to message #477426] |
Wed, 28 May 2008 17:47  |
Eclipse User |
|
|
|
Hi Erny,
.... not a silly question ... you can create an AssociationClass similar to
how you would create a uml::Class. From Package, you can call
createOwnedType() for example. Since this type is both a Class and an
Association, you should add to the ownedEnds() collection etc. and fill out
any other properties you may need.
There currently is no complete documentation on how to create all the
various types using the UML2 API. One can generally figure out how to do
this by discovery through the example uml editor. The getting started
articles also have some information. There is a bugzilla open for writing
such documentation.
Feel free to add to the Wiki anything that you might discover along the way.
Others could greatly benefit from your input.
Cheers,
- James.
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:g14f93$tjc$1@build.eclipse.org...
> Hi NG
>
> This is perhaps a silly question, but I don't realy know how to create an
> AssociationClass and connect it with the both associated classes.
> How can I do this and where do I find documentation or help about such
> silly topics?
>
> Thanx and regards
> Erny
>
|
|
|
Re: Creating an AssociationClass [message #626640 is a reply to message #477426] |
Wed, 28 May 2008 17:47  |
Eclipse User |
|
|
|
Hi Erny,
.... not a silly question ... you can create an AssociationClass similar to
how you would create a uml::Class. From Package, you can call
createOwnedType() for example. Since this type is both a Class and an
Association, you should add to the ownedEnds() collection etc. and fill out
any other properties you may need.
There currently is no complete documentation on how to create all the
various types using the UML2 API. One can generally figure out how to do
this by discovery through the example uml editor. The getting started
articles also have some information. There is a bugzilla open for writing
such documentation.
Feel free to add to the Wiki anything that you might discover along the way.
Others could greatly benefit from your input.
Cheers,
- James.
"ubrawand" <ueli.brawand@bluewin.ch> wrote in message
news:g14f93$tjc$1@build.eclipse.org...
> Hi NG
>
> This is perhaps a silly question, but I don't realy know how to create an
> AssociationClass and connect it with the both associated classes.
> How can I do this and where do I find documentation or help about such
> silly topics?
>
> Thanx and regards
> Erny
>
|
|
|
Powered by
FUDForum. Page generated in 0.27488 seconds