Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » TOPCASED and tagged values?
TOPCASED and tagged values? [message #473106] Wed, 06 June 2007 21:04 Go to next message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 90
Registered: July 2009
Member
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 #473107 is a reply to message #473106] Thu, 07 June 2007 01:40 Go to previous messageGo to next message
Dave Carlson is currently offline Dave CarlsonFriend
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 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #473134 is a reply to message #473126] Sat, 09 June 2007 03:05 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The uml.metamodel.uml and primitive types library can be found in
org.eclipse.uml2.uml.resources

- James.



"Katja" <kl851754@inf.tu-dresden.de> wrote in message
news:c85781b8f28cac23fbd90671c410846c$1@www.eclipse.org...
> 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 #473137 is a reply to message #473126] Mon, 11 June 2007 09:16 Go to previous messageGo to next message
Marco MosconiFriend
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 #473183 is a reply to message #473134] Tue, 12 June 2007 09:42 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
james bruck is currently offline james bruckFriend
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 Go to previous message
Dave Carlson is currently offline Dave CarlsonFriend
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 Go to previous message
Jacques LESCOT is currently offline Jacques LESCOTFriend
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 Go to previous message
Eclipse UserFriend
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 #619922 is a reply to message #473126] Sat, 09 June 2007 03:05 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The uml.metamodel.uml and primitive types library can be found in
org.eclipse.uml2.uml.resources

- James.



"Katja" <kl851754@inf.tu-dresden.de> wrote in message
news:c85781b8f28cac23fbd90671c410846c$1@www.eclipse.org...
> 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 Go to previous message
Marco MosconiFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
james bruck is currently offline james bruckFriend
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
>
Previous Topic:How to retrieve subclasses by giving a class
Next Topic:heavyweight extension in OMG specifications
Goto Forum:
  


Current Time: Thu Mar 28 17:34:09 GMT 2024

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

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

Back to the top