Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSetting Is Unique property - where is it implemented?
https://www.eclipse.org/forums/index.php/mv/msg/151768/477671/#msg_477671
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]]>2008-08-11T20:33:52-00:00Re: Setting Is Unique property - where is it implemented?
https://www.eclipse.org/forums/index.php/mv/msg/151768/626866/#msg_626866
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
>
>
>]]>2008-08-11T22:53:30-00:00Re: Setting Is Unique property - where is it implemented?
https://www.eclipse.org/forums/index.php/mv/msg/151768/477674/#msg_477674
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
>
>
>]]>2008-08-11T22:53:30-00:00Re: Setting Is Unique property - where is it implemented?
https://www.eclipse.org/forums/index.php/mv/msg/151768/626875/#msg_626875
Originally posted by: marian-misc.rainer-harbach.eu
Hi!
Thanks a lot!
Marian]]>2008-08-13T21:33:17-00:00Re: Setting Is Unique property - where is it implemented?
https://www.eclipse.org/forums/index.php/mv/msg/151768/477683/#msg_477683
Originally posted by: marian-misc.rainer-harbach.eu
Hi!
Thanks a lot!
Marian]]>2008-08-13T21:33:17-00:00