Home » Modeling » UML2 » TOPCASED and tagged values?
|
Re: TOPCASED and tagged values? [message #473107 is a reply to message #473106] |
Thu, 07 June 2007 01:40 |
Dave Carlson Messages: 402 Registered: July 2009 |
Senior Member |
|
|
Jan,
The concept of "tagged values" is obsolete in UML2 and is based on
terminology from the UML 1.x specs. Best to just think in terms of
stereotypes and properties of those stereotypes.
The stereotype properties do not appear in the class on the diagram, but
should be visible and editable in a Properties view. I am not familiar
with TopCased, but if you have a .uml file that you can open using the
Eclipse UML2 tree view editor (without diagrams), then look at the
Advanced tab in the Properties view where you should see your stereotype
listed along with its property. Of course, this will only appear after
you've applied the stereotype, but it sounds like you've done that.
Good luck,
Dave Carlson
Jan Reimann wrote:
> I'd like to attach predefined tagged values from a self-defined profile
> to a class. Therefore I built a simple profile with one stereotype and a
> property (I guess that's a tagged value?) Then I provided a type for
> this property in the properties window under Model. I chose
> uml::integer. Now I created a class (after loading an applying the
> profile) and assigned a stereotype.
>
> Now the question: I can't see the specified property for this stereotype
> in this class. The stereotype in the class diagramm should have all the
> properties that have been defined before in the profile, shouldn't it?
> How can I realise that? It's not a matter of refreshing, I already
> checked that.
> Is it it possible with TOPCASED? Maybey some TOPCASED developers are
> reading here as well?
>
> I'd appreciate any help.
>
> Thanks
|
|
|
Re: TOPCASED and tagged values? [message #473109 is a reply to message #473107] |
Thu, 07 June 2007 09:18 |
Jacques LESCOT Messages: 247 Registered: July 2009 |
Senior Member |
|
|
I confirm what Dave said. In Topcased, you have a Stereotype Attributes
tab in the Properties View that enable you to edit the properties
associated with the applied stereotypes.
Jacques
Dave Carlson a écrit :
> Jan,
> The concept of "tagged values" is obsolete in UML2 and is based on
> terminology from the UML 1.x specs. Best to just think in terms of
> stereotypes and properties of those stereotypes.
>
> The stereotype properties do not appear in the class on the diagram, but
> should be visible and editable in a Properties view. I am not familiar
> with TopCased, but if you have a .uml file that you can open using the
> Eclipse UML2 tree view editor (without diagrams), then look at the
> Advanced tab in the Properties view where you should see your stereotype
> listed along with its property. Of course, this will only appear after
> you've applied the stereotype, but it sounds like you've done that.
>
> Good luck,
> Dave Carlson
>
> Jan Reimann wrote:
>> I'd like to attach predefined tagged values from a self-defined
>> profile to a class. Therefore I built a simple profile with one
>> stereotype and a property (I guess that's a tagged value?) Then I
>> provided a type for this property in the properties window under
>> Model. I chose uml::integer. Now I created a class (after loading an
>> applying the profile) and assigned a stereotype.
>>
>> Now the question: I can't see the specified property for this
>> stereotype in this class. The stereotype in the class diagramm should
>> have all the properties that have been defined before in the profile,
>> shouldn't it? How can I realise that? It's not a matter of refreshing,
>> I already checked that.
>> Is it it possible with TOPCASED? Maybey some TOPCASED developers are
>> reading here as well?
>>
>> I'd appreciate any help.
>>
>> Thanks
|
|
|
Re: TOPCASED and tagged values? [message #473126 is a reply to message #473109] |
Fri, 08 June 2007 13:25 |
Eclipse User |
|
|
|
Originally posted by: kl851754.inf.tu-dresden.de
Hi,
I managed to apply an already defined profiole from someone else and
finally saw the properties. However, it does not work for my profile,
although the structure is similar. Now I encountered that it might be
missing a metamodel reference to UML.metamodel.UML and
primitiveTypes.libary. That seems to be the difference. I just don't know
where to load this resource from.
Any idea?
|
|
| | |
Re: TOPCASED and tagged values? [message #473183 is a reply to message #473134] |
Tue, 12 June 2007 09:42 |
Eclipse User |
|
|
|
Originally posted by: kl851754.inf.tu-dresden.de
OK, thanks for your answers, they helped :) and I found everything.
Unfortunately now I've got another problem :(
When validating the model, I sometims get "eReferenced type must be set"
I just cannot find out how to do this. Sometimes it seems to be generated
automaticly. If I choose the property then I get the Property Properties
(nice name) and could specify the EReference Type, but I cannot type
anything in there. I'm lost here.
regards,
Katja
|
|
|
Re: TOPCASED and tagged values? [message #473196 is a reply to message #473183] |
Wed, 13 June 2007 13:29 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Katja,
From your UML model ( or profile ) when you create a property, you should
set its "Type" to something since properties are converted to EReferences
when converting to .ecore and EMF requires types for EReferences to be set
( if you want to have a valid model ).
One tip I could offer is to try to run validation on your model or profile
before doing a define() or converting to .ecore.
In your particular case, it is valid in UML to not set the type of a
property but validation might catch other issues.
Cheers,
- James.
"Katja" <kl851754@inf.tu-dresden.de> wrote in message
news:2e80ed199f1ddafefa90725e4aea310f$1@www.eclipse.org...
> OK, thanks for your answers, they helped :) and I found everything.
> Unfortunately now I've got another problem :(
>
> When validating the model, I sometims get "eReferenced type must be set"
> I just cannot find out how to do this. Sometimes it seems to be generated
> automaticly. If I choose the property then I get the Property Properties
> (nice name) and could specify the EReference Type, but I cannot type
> anything in there. I'm lost here.
>
> regards,
> Katja
>
|
|
|
Re: TOPCASED and tagged values? [message #619768 is a reply to message #473106] |
Thu, 07 June 2007 01:40 |
Dave Carlson Messages: 402 Registered: July 2009 |
Senior Member |
|
|
Jan,
The concept of "tagged values" is obsolete in UML2 and is based on
terminology from the UML 1.x specs. Best to just think in terms of
stereotypes and properties of those stereotypes.
The stereotype properties do not appear in the class on the diagram, but
should be visible and editable in a Properties view. I am not familiar
with TopCased, but if you have a .uml file that you can open using the
Eclipse UML2 tree view editor (without diagrams), then look at the
Advanced tab in the Properties view where you should see your stereotype
listed along with its property. Of course, this will only appear after
you've applied the stereotype, but it sounds like you've done that.
Good luck,
Dave Carlson
Jan Reimann wrote:
> I'd like to attach predefined tagged values from a self-defined profile
> to a class. Therefore I built a simple profile with one stereotype and a
> property (I guess that's a tagged value?) Then I provided a type for
> this property in the properties window under Model. I chose
> uml::integer. Now I created a class (after loading an applying the
> profile) and assigned a stereotype.
>
> Now the question: I can't see the specified property for this stereotype
> in this class. The stereotype in the class diagramm should have all the
> properties that have been defined before in the profile, shouldn't it?
> How can I realise that? It's not a matter of refreshing, I already
> checked that.
> Is it it possible with TOPCASED? Maybey some TOPCASED developers are
> reading here as well?
>
> I'd appreciate any help.
>
> Thanks
|
|
|
Re: TOPCASED and tagged values? [message #619772 is a reply to message #473107] |
Thu, 07 June 2007 09:18 |
Jacques LESCOT Messages: 247 Registered: July 2009 |
Senior Member |
|
|
I confirm what Dave said. In Topcased, you have a Stereotype Attributes
tab in the Properties View that enable you to edit the properties
associated with the applied stereotypes.
Jacques
Dave Carlson a écrit :
> Jan,
> The concept of "tagged values" is obsolete in UML2 and is based on
> terminology from the UML 1.x specs. Best to just think in terms of
> stereotypes and properties of those stereotypes.
>
> The stereotype properties do not appear in the class on the diagram, but
> should be visible and editable in a Properties view. I am not familiar
> with TopCased, but if you have a .uml file that you can open using the
> Eclipse UML2 tree view editor (without diagrams), then look at the
> Advanced tab in the Properties view where you should see your stereotype
> listed along with its property. Of course, this will only appear after
> you've applied the stereotype, but it sounds like you've done that.
>
> Good luck,
> Dave Carlson
>
> Jan Reimann wrote:
>> I'd like to attach predefined tagged values from a self-defined
>> profile to a class. Therefore I built a simple profile with one
>> stereotype and a property (I guess that's a tagged value?) Then I
>> provided a type for this property in the properties window under
>> Model. I chose uml::integer. Now I created a class (after loading an
>> applying the profile) and assigned a stereotype.
>>
>> Now the question: I can't see the specified property for this
>> stereotype in this class. The stereotype in the class diagramm should
>> have all the properties that have been defined before in the profile,
>> shouldn't it? How can I realise that? It's not a matter of refreshing,
>> I already checked that.
>> Is it it possible with TOPCASED? Maybey some TOPCASED developers are
>> reading here as well?
>>
>> I'd appreciate any help.
>>
>> Thanks
|
|
|
Re: TOPCASED and tagged values? [message #619914 is a reply to message #473109] |
Fri, 08 June 2007 13:25 |
Eclipse User |
|
|
|
Originally posted by: kl851754.inf.tu-dresden.de
Hi,
I managed to apply an already defined profiole from someone else and
finally saw the properties. However, it does not work for my profile,
although the structure is similar. Now I encountered that it might be
missing a metamodel reference to UML.metamodel.UML and
primitiveTypes.libary. That seems to be the difference. I just don't know
where to load this resource from.
Any idea?
|
|
| |
Re: TOPCASED and tagged values? [message #619925 is a reply to message #473126] |
Mon, 11 June 2007 09:16 |
Marco Mosconi Messages: 63 Registered: July 2009 |
Member |
|
|
Hi Katja,
did you call "Profile->Define" from the UML Editor Menu?
This has to be done after a change in the Profile (i.e. just before
deploying it).
Regards,
Marco
Katja schrieb:
> Hi,
>
> I managed to apply an already defined profiole from someone else and
> finally saw the properties. However, it does not work for my profile,
> although the structure is similar. Now I encountered that it might be
> missing a metamodel reference to UML.metamodel.UML and
> primitiveTypes.libary. That seems to be the difference. I just don't
> know where to load this resource from.
>
> Any idea?
>
|
|
|
Re: TOPCASED and tagged values? [message #621539 is a reply to message #473134] |
Tue, 12 June 2007 09:42 |
Eclipse User |
|
|
|
Originally posted by: kl851754.inf.tu-dresden.de
OK, thanks for your answers, they helped :) and I found everything.
Unfortunately now I've got another problem :(
When validating the model, I sometims get "eReferenced type must be set"
I just cannot find out how to do this. Sometimes it seems to be generated
automaticly. If I choose the property then I get the Property Properties
(nice name) and could specify the EReference Type, but I cannot type
anything in there. I'm lost here.
regards,
Katja
|
|
|
Re: TOPCASED and tagged values? [message #621576 is a reply to message #473183] |
Wed, 13 June 2007 13:29 |
james bruck Messages: 1724 Registered: July 2009 |
Senior Member |
|
|
Hi Katja,
From your UML model ( or profile ) when you create a property, you should
set its "Type" to something since properties are converted to EReferences
when converting to .ecore and EMF requires types for EReferences to be set
( if you want to have a valid model ).
One tip I could offer is to try to run validation on your model or profile
before doing a define() or converting to .ecore.
In your particular case, it is valid in UML to not set the type of a
property but validation might catch other issues.
Cheers,
- James.
"Katja" <kl851754@inf.tu-dresden.de> wrote in message
news:2e80ed199f1ddafefa90725e4aea310f$1@www.eclipse.org...
> OK, thanks for your answers, they helped :) and I found everything.
> Unfortunately now I've got another problem :(
>
> When validating the model, I sometims get "eReferenced type must be set"
> I just cannot find out how to do this. Sometimes it seems to be generated
> automaticly. If I choose the property then I get the Property Properties
> (nice name) and could specify the EReference Type, but I cannot type
> anything in there. I'm lost here.
>
> regards,
> Katja
>
|
|
|
Goto Forum:
Current Time: Thu Sep 19 23:58:30 GMT 2024
Powered by FUDForum. Page generated in 0.05579 seconds
|