Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Defining Stereotypes
Defining Stereotypes [message #826603] Thu, 22 March 2012 09:22 Go to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

I am trying to define a Stereotype (for the Class meta-class) having an attribute typed with a "complex" data type (with two properties typed with primitive types) I have previously defined. In this case model editor does not actually allow me to edit the properties of that stereotype's attributes.
The problem is though I have easily managed to define attribute representing association to certain types of the target model (i.e. a given class sub classes, etc.) I can't see how to define stereotype's attributes representing composition relationships (that is to say the attribute is a brand new instance of that type contained by the stereotype and not just a reference to an already existing entity of that type). Is that possible or am I trying to break some coherency criteria between modeling and meta-modeling? Smile


Follow me on Twitter @andreasindico

Re: Defining Stereotypes [message #826608 is a reply to message #826603] Thu, 22 March 2012 09:33 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 456
Registered: February 2011
Senior Member
Hello,

This is actually a known issue in Papyrus, which we're planing to fix in the next version.

So, this is currently not possible.


Camille Letavernier
Papyrus developer
Re: Defining Stereotypes [message #829741 is a reply to message #826608] Mon, 26 March 2012 18:16 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea Sindico
Messages: 266
Registered: November 2010
Senior Member

thank you

Andrea Sindico


Follow me on Twitter @andreasindico

Re: Defining Stereotypes [message #891899 is a reply to message #826603] Tue, 26 June 2012 13:22 Go to previous messageGo to next message
Ronan B is currently offline Ronan B
Messages: 244
Registered: July 2009
Senior Member
Hi,
This bug is still in Papyrus 0.9 on Juno for the SysMl profile. Are you guys using a public bug tracker for keeping track? Bugzilla says 0 bugs right now.
Regards,
Ronan
Re: Defining Stereotypes [message #891902 is a reply to message #891899] Tue, 26 June 2012 13:25 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 456
Registered: February 2011
Senior Member
Hello,

We're using the Eclipse Bugzilla:

375029: [Profile definition] Profile Datatypes should be defined as EClasses instead of Strings
https://bugs.eclipse.org/bugs/show_bug.cgi?id=375029

The bug hasn't been fixed yet


Camille


Camille Letavernier
Papyrus developer
Re: Defining Stereotypes [message #891903 is a reply to message #891902] Tue, 26 June 2012 13:30 Go to previous messageGo to next message
Ronan B is currently offline Ronan B
Messages: 244
Registered: July 2009
Senior Member
Hi,
Okay great thanks. The link from your page at http://www.eclipse.org/modeling/mdt/papyrus/support/index.php goes to the wrong tracker. It links to MDT instead of MDT.Papyrus. Thus the confusion. Might be worth fixing that Wink
Regards,
Ronan
Re: Defining Stereotypes [message #891905 is a reply to message #891903] Tue, 26 June 2012 13:37 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille Letavernier
Messages: 456
Registered: February 2011
Senior Member
Hello,

Thank you for pointing out the error. We've indeed changed our bugzilla configuration a few months ago; I'm going to fix it.


Regards,
Camille


Camille Letavernier
Papyrus developer
Re: Defining Stereotypes [message #892069 is a reply to message #826603] Wed, 27 June 2012 06:31 Go to previous message
Eclipse User
Andrea,

>The problem is though I have easily managed to define attribute
>representing association to certain types of the target model (i.e. a given
>class sub classes, etc.) I can't see how to >define stereotype's attributes
>representing composition relationships (that is to say the attribute is a
>brand new instance of that type contained by the stereotype and not just a
> >reference to an already existing entity of that type). Is that possible or
>am I trying to break some coherency criteria between modeling and
>meta-modeling? :)

Properties aggregated by Composition do not work (at least to my knowledge)
correctly due to a problem in the view. However, there is a workaround: You
could create the element you want to have being aggregated as tagged value
separately (somewhere in a package or so). Afterwards, you can move this
element either programmatically or by using the default UML tree editor into
the composte tag definition of your Stereotype instance.

THT
Marc-Florian

"Andrea Mising name" schrieb im Newsbeitrag
news:jker11$3bm$1@xxxxxxxxe.org...

I am trying to define a Stereotype (for the Class meta-class) having an
attribute typed with a "complex" data type (with two properties typed with
primitive types) I have previously defined. In this case model editor does
not actually allow me to edit the properties of that stereotype's
attributes.
The problem is though I have easily managed to define attribute representing
association to certain types of the target model (i.e. a given class sub
classes, etc.) I can't see how to define stereotype's attributes
representing composition relationships (that is to say the attribute is a
brand new instance of that type contained by the stereotype and not just a
reference to an already existing entity of that type). Is that possible or
am I trying to break some coherency criteria between modeling and
meta-modeling? :)
Previous Topic:UML elements
Next Topic:Purpose of the following slideset
Goto Forum:
  


Current Time: Thu Sep 18 21:50:51 GMT 2014

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

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