Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to set & get data from a stereotype's properties
https://www.eclipse.org/forums/index.php/mv/msg/151899/478190/#msg_478190
I created a stereotype properties which is using another "Type" I defined
within same profile. How can I use set and get value from this properties
using api?
I use RSM's properties editor, I can input single or multiple instances of
data to this properties. It seems the value is held within a list.
Now the questions are:
1. Should I use a custom type in stereotype properties? Or I should define
another stereotype and use it in properties?
2. I know RSM is using ClassImpl to represent a Profile's type, but how can
I use uml2 setValue() or getValue() to add & retrieve data from it?
Thanks
Maniel]]>maniel 2009-02-12T14:44:36-00:00Re: How to set & get data from a stereotype's properties
https://www.eclipse.org/forums/index.php/mv/msg/151899/478214/#msg_478214
If I'm not mistaken, RSMs property editor will obtain the structural feature
from the DynamicEObject representation of the Stereotype application and
then set the types using EMF.
For setting multi-valued properties, the final Object parameter would have
to be some instance of java.util.List. The elements in the list would need
to conform to the property type . Internally the setValue() method creates
a new list and calls eSet using the new list.
Cheers,
- James.
"maniel " <maniel_leong@shaw.ca> wrote in message
news:a0f274129ecf8461f608c27e125de659$1@www.eclipse.org...
> Hi,
>
> I created a stereotype properties which is using another "Type" I defined
> within same profile. How can I use set and get value from this properties
> using api?
>
> I use RSM's properties editor, I can input single or multiple instances of
> data to this properties. It seems the value is held within a list.
>
> Now the questions are:
> 1. Should I use a custom type in stereotype properties? Or I should define
> another stereotype and use it in properties?
>
> 2. I know RSM is using ClassImpl to represent a Profile's type, but how
> can
> I use uml2 setValue() or getValue() to add & retrieve data from it?
>
> Thanks
> Maniel
>
>]]>james bruck2009-02-27T20:05:15-00:00Re: How to set & get data from a stereotype's properties
https://www.eclipse.org/forums/index.php/mv/msg/151899/627409/#msg_627409
If I'm not mistaken, RSMs property editor will obtain the structural feature
from the DynamicEObject representation of the Stereotype application and
then set the types using EMF.
For setting multi-valued properties, the final Object parameter would have
to be some instance of java.util.List. The elements in the list would need
to conform to the property type . Internally the setValue() method creates
a new list and calls eSet using the new list.
Cheers,
- James.
"maniel " <maniel_leong@shaw.ca> wrote in message
news:a0f274129ecf8461f608c27e125de659$1@www.eclipse.org...
> Hi,
>
> I created a stereotype properties which is using another "Type" I defined
> within same profile. How can I use set and get value from this properties
> using api?
>
> I use RSM's properties editor, I can input single or multiple instances of
> data to this properties. It seems the value is held within a list.
>
> Now the questions are:
> 1. Should I use a custom type in stereotype properties? Or I should define
> another stereotype and use it in properties?
>
> 2. I know RSM is using ClassImpl to represent a Profile's type, but how
> can
> I use uml2 setValue() or getValue() to add & retrieve data from it?
>
> Thanks
> Maniel
>
>]]>james bruck2009-02-27T20:05:15-00:00