|
Re: Apply Ecore stereotype in UML2 editor [message #628359 is a reply to message #628358] |
Fri, 09 April 2010 12:50 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02923 seconds