Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Apply Ecore stereotype in UML2 editor
Apply Ecore stereotype in UML2 editor [message #628358] Fri, 09 April 2010 11:38 Go to next message
Karel Smutny is currently offline Karel SmutnyFriend
Messages: 22
Registered: July 2009
Junior Member
This would be a totally newbie question, but I just can't find any answer to it.

How do I apply a stereotype from Ecore profile in a blank UML2 file in UML2 editor? I tried to load resource Ecore.profile.uml (which I had extracted from some .jar deeply in Eclipse/plugin directory before), but clicking to UML Editor -> Element -> Apply stereotype... does not offer me any stereotype from Ecore profile applicable to selected element (say an operation).

Complementary question: Do I understand right that in order to model a subsetted/subsetting property or attribute/operation redefinition to be generated in EMF I need to apply EReference or EAttribute or EOperation (respectively) stereotypes to corresponding elements in my UML2 model?

Thanks a lot for any help
Karel
Re: Apply Ecore stereotype in UML2 editor [message #628359 is a reply to message #628358] Fri, 09 April 2010 12:50 Go to previous message
Christian W. Damus is currently offline Christian W. DamusFriend
Messages: 831
Registered: July 2009
Senior Member
Hi, Karel,

See some replies in-line, below.

HTH,

Christian


On 09/04/10 07:38 AM, Karel Smutny wrote:
> This would be a totally newbie question, but I just can't find any
> answer to it.
>
> How do I apply a stereotype from Ecore profile in a blank UML2 file in
> UML2 editor? I tried to load resource Ecore.profile.uml (which I had
> extracted from some .jar deeply in Eclipse/plugin directory before), but
> clicking to UML Editor -> Element -> Apply stereotype... does not offer
> me any stereotype from Ecore profile applicable to selected element (say
> an operation).

You must first apply the Ecore profile to some package (often the root
package) in your model. Then you can apply its stereotypes to elements
within that package and its sub-packages.

See the "UML Editor -> Package" menu in the main menu bar.


> Complementary question: Do I understand right that in order to model a
> subsetted/subsetting property or attribute/operation redefinition to be
> generated in EMF I need to apply EReference or EAttribute or EOperation
> (respectively) stereotypes to corresponding elements in my UML2 model?

No stereotypes are required for subsetting and redefinition. These are
purely UML constructs. Use the property sheet of your attributes and
operations to set these relationships.


> Thanks a lot for any help
> Karel
Previous Topic:[Announce] MoDELS 2010 Call for Papers
Next Topic:UML Profile
Goto Forum:
  


Current Time: Fri Nov 28 13:51:38 GMT 2014

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

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