|
Re: Apply Ecore stereotype in UML2 editor [message #526278 is a reply to message #526253] |
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
|
|
|
|
Re: Apply Ecore stereotype in UML2 editor [message #527375 is a reply to message #526981] |
Thu, 15 April 2010 05:48 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Dear Karel,
if you want to use subsets and redefinitions in your EMF model (which is
natively not supported), you must model your metamodel as UML using
these capabilities of subsets and redefinitions and afterwards import
the UML model for the creation of an EMF model by the UML2 Importer. The
UML2 project provide a particular template for Ecore generation, using a
specific list framework for subsets and redefinitions.
Have fun
Timothy
James Bruck schrieb:
> This may also be of some use ...
> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html
>
> "Christian W. Damus" <cdamus@qnx.com> wrote in message
> news:hpn7qc$9ip$1@build.eclipse.org...
>> 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
>
>
|
|
|
|
|
Re: Apply Ecore stereotype in UML2 editor [message #628368 is a reply to message #526981] |
Thu, 15 April 2010 05:48 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
Dear Karel,
if you want to use subsets and redefinitions in your EMF model (which is
natively not supported), you must model your metamodel as UML using
these capabilities of subsets and redefinitions and afterwards import
the UML model for the creation of an EMF model by the UML2 Importer. The
UML2 project provide a particular template for Ecore generation, using a
specific list framework for subsets and redefinitions.
Have fun
Timothy
James Bruck schrieb:
> This may also be of some use ...
> http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Intro duction_to_UML2_Profiles/article.html
>
> "Christian W. Damus" <cdamus@qnx.com> wrote in message
> news:hpn7qc$9ip$1@build.eclipse.org...
>> 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.02426 seconds