Setting Is Unique property - where is it implemented? [message #477671] |
Mon, 11 August 2008 20:33 |
Eclipse User |
|
|
|
Originally posted by: marian-misc.rainer-harbach.eu
Hello!
I am trying to extend the UML2Tools class diagram editor user interface in
order to being able to easily toggle the "Is Unique" properties of an
association's ends.
In order to implement this feature I would like to look at how the UML2
model editor accomplishes this. I would be glad if anyone could point me
to the classes where changing the "Is Unique" property is implemented in
UML2 or to any documentation if available.
Thanks,
Marian
|
|
|
Re: Setting Is Unique property - where is it implemented? [message #477674 is a reply to message #477671] |
Mon, 11 August 2008 22:53 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Marian,
Have a look at the isUnique() and setIsUnique() methods on the
org.eclipse.uml2.uml.MultiplicityElement interface and also the
org.eclipse.uml2.uml.edit.providers.MultiplicityElementItemP rovider
class, which is used by the UML2 editor to create the property sheet.
These are just examples of the basic code-generation pattern implemented
by EMF. For more information on that, see the EMF tutorials in the
on-line help.
HTH,
Christian
Marian Rainer-Harbach wrote:
> Hello!
> I am trying to extend the UML2Tools class diagram editor user interface
> in order to being able to easily toggle the "Is Unique" properties of an
> association's ends.
>
> In order to implement this feature I would like to look at how the UML2
> model editor accomplishes this. I would be glad if anyone could point me
> to the classes where changing the "Is Unique" property is implemented in
> UML2 or to any documentation if available.
>
> Thanks,
> Marian
>
>
>
|
|
|
|
Re: Setting Is Unique property - where is it implemented? [message #626866 is a reply to message #477671] |
Mon, 11 August 2008 22:53 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Marian,
Have a look at the isUnique() and setIsUnique() methods on the
org.eclipse.uml2.uml.MultiplicityElement interface and also the
org.eclipse.uml2.uml.edit.providers.MultiplicityElementItemP rovider
class, which is used by the UML2 editor to create the property sheet.
These are just examples of the basic code-generation pattern implemented
by EMF. For more information on that, see the EMF tutorials in the
on-line help.
HTH,
Christian
Marian Rainer-Harbach wrote:
> Hello!
> I am trying to extend the UML2Tools class diagram editor user interface
> in order to being able to easily toggle the "Is Unique" properties of an
> association's ends.
>
> In order to implement this feature I would like to look at how the UML2
> model editor accomplishes this. I would be glad if anyone could point me
> to the classes where changing the "Is Unique" property is implemented in
> UML2 or to any documentation if available.
>
> Thanks,
> Marian
>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds