structured datatype [message #999628] |
Sat, 12 January 2013 12:46  |
Eclipse User |
|
|
|
Hello to everyone,
I'm modeling a room with papyrus and profiles. I've created the following types
----------------
<<enumeration>> |
PolygonType |
--------------- |
rectangle |
square |
----------------
-------------------
<<dataType>> |
Shape |
------------------ |
type: PolygonType |
area: Real |
-------------------
Then I created a class called "room" and I've applied a profile which has the Shape property as tagged value.
Now I want to fulfill the tagged values, but in the Shape field I can write something not defined, for example "circle", and everything goes ok because it is a string to fill and not for example a menu to choose from "rectangle" and "square".
Again what if a type has sub-types, how to manage them?
Thanks in advance,
Claudio
|
|
|
|
Re: structured datatype [message #1001899 is a reply to message #999628] |
Thu, 17 January 2013 09:21   |
Eclipse User |
|
|
|
Hi, Claudio,
It's not entirely clear to me what the problem is. Are you saying that
in a DataType "room" in your model, having the <<shape>> stereotype
applied, you cal set the 'type' property to "circle"? In my
experience, Papyrus's property sheet presents a pick-list (as you
expected) for enumerated values.
I don't know what this has to do with sub-types.
Can you provide more details of your profile and your model, and in
which UI precisely you're seeing the wrong editing behaviour?
Cheers,
Christian
On 2013-01-12 17:46:44 +0000, Claudio Persico said:
> Hello to everyone,
>
> I'm modeling a room with papyrus and profiles. I've created the following types
>
>
> ----------------
> <<enumeration>> |
> PolygonType |
> --------------- |
> rectangle |
> square |
> ----------------
>
> -------------------
> <<dataType>> |
> Shape |
> ------------------ |
> type: PolygonType |
> area: Real |
> -------------------
>
> Then I created a class called "room" and I've applied a profile which
> has the Shape property as tagged value.
> Now I want to fulfill the tagged values, but in the Shape field I can
> write something not defined, for example "circle", and everything goes
> ok because it is a string to fill and not for example a menu to choose
> from "rectangle" and "square".
>
> Again what if a type has sub-types, how to manage them?
>
> Thanks in advance,
> Claudio
|
|
|
|
|
Re: structured datatype [message #1003507 is a reply to message #1003475] |
Mon, 21 January 2013 06:46  |
Eclipse User |
|
|
|
Thanks for the reply,
I've also installed Eclipse Juno with Papyrus 0.9.1a.
The result is the same, the problem persists as you can see from the UML code produced:
<profile:Room xmi:id="_FU1_gGO_EeKg7d_269-8CQ" base_Classifier="_DdxJIGO_EeKg7d_269-8CQ" shape="whatever, somethingelse, theRest
"/>
Probably it is not a problem but the correct behavior. I would like to know how to handle it.
Thanks in advance,
Claudio
|
|
|
Powered by
FUDForum. Page generated in 0.04738 seconds