Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Setting Is Unique property - where is it implemented?
Setting Is Unique property - where is it implemented? [message #477671] Mon, 11 August 2008 20:33 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #477683 is a reply to message #477674] Wed, 13 August 2008 21:33 Go to previous message
Eclipse UserFriend
Originally posted by: marian-misc.rainer-harbach.eu

Hi!
Thanks a lot!
Marian
Re: Setting Is Unique property - where is it implemented? [message #626866 is a reply to message #477671] Mon, 11 August 2008 22:53 Go to previous message
Eclipse UserFriend
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 #626875 is a reply to message #477674] Wed, 13 August 2008 21:33 Go to previous message
Eclipse UserFriend
Originally posted by: marian-misc.rainer-harbach.eu

Hi!
Thanks a lot!
Marian
Previous Topic:How to read the xmi:id attribute in a UML model?
Next Topic:Re: Sequence Diagram to Java Code ATL Transformations
Goto Forum:
  


Current Time: Fri Apr 19 22:53:24 GMT 2024

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

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

Back to the top