Static profile stereotype application problem [message #478416] |
Tue, 19 May 2009 10:46  |
Eclipse User |
|
|
|
Hello,
I have packaged a static profile following instructions given in the
presentation of EclipseCon 2008.
I have no problem to apply the profile to a model, however when I try to
apply a stereotype, a valid list of appliable stereotypes is given but
nothing happens when I try to apply one of them.
I am working on Galileo M7 with UML2 3.0.0.
You will find my test plug-in enclosed.
Does anyone have an explanation?
Regards,
Chokri
|
|
|
|
|
Re: Static profile stereotype application problem [message #478424 is a reply to message #478423] |
Tue, 19 May 2009 18:06   |
Eclipse User |
|
|
|
It's the 'Camel Case Name' option that is removing the '_'.
For the time being, ensure that the option is set to "Ignore" before doing
conversions to Ecore.
Your static profile should work fine after.
Cheers,
- James.
"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:guv9pu$d19$1@build.eclipse.org...
> Hi Chokri,
>
> How did you create your "MySecondProfile.ecore" ?
>
> It seems to have incorrect "baseClass" feature on FirstSt and SecondSt.
> It should be "base_Class". For that reason, Element.getAppliedStereotypes
> is failing as well as UMLUtil.setBaseElement.
>
> Try creating your ecore representation by importing the .uml stereotype
> directly into the EMF import wizard.
> The foreign model to your .genmodel should point to the .uml model.
>
> The .ecore model generate that way should have features with "base_".
>
> In the meantime, I'll see why simply converting the .uml model with the
> menu option removes the "_".
>
> Cheers,
> - James.
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:guuium$ljb$1@build.eclipse.org...
>> This is being looked into ...
>>
>> - James.
>>
>> "Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
>> news:guuh40$o1p$1@build.eclipse.org...
>>> Hello,
>>>
>>> I have packaged a static profile following instructions given in the
>>> presentation of EclipseCon 2008.
>>> I have no problem to apply the profile to a model, however when I try to
>>> apply a stereotype, a valid list of appliable stereotypes is given but
>>> nothing happens when I try to apply one of them.
>>> I am working on Galileo M7 with UML2 3.0.0.
>>> You will find my test plug-in enclosed.
>>> Does anyone have an explanation?
>>>
>>>
>>> Regards,
>>>
>>> Chokri
>>>
>>>
>>
>>
>
>
|
|
|
|
Re: Static profile stereotype application problem [message #627603 is a reply to message #478416] |
Tue, 19 May 2009 11:27  |
Eclipse User |
|
|
|
This is being looked into ...
- James.
"Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
news:guuh40$o1p$1@build.eclipse.org...
> Hello,
>
> I have packaged a static profile following instructions given in the
> presentation of EclipseCon 2008.
> I have no problem to apply the profile to a model, however when I try to
> apply a stereotype, a valid list of appliable stereotypes is given but
> nothing happens when I try to apply one of them.
> I am working on Galileo M7 with UML2 3.0.0.
> You will find my test plug-in enclosed.
> Does anyone have an explanation?
>
>
> Regards,
>
> Chokri
>
>
|
|
|
Re: Static profile stereotype application problem [message #627609 is a reply to message #478418] |
Tue, 19 May 2009 17:57  |
Eclipse User |
|
|
|
Hi Chokri,
How did you create your "MySecondProfile.ecore" ?
It seems to have incorrect "baseClass" feature on FirstSt and SecondSt. It
should be "base_Class". For that reason, Element.getAppliedStereotypes is
failing as well as UMLUtil.setBaseElement.
Try creating your ecore representation by importing the .uml stereotype
directly into the EMF import wizard.
The foreign model to your .genmodel should point to the .uml model.
The .ecore model generate that way should have features with "base_".
In the meantime, I'll see why simply converting the .uml model with the menu
option removes the "_".
Cheers,
- James.
"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:guuium$ljb$1@build.eclipse.org...
> This is being looked into ...
>
> - James.
>
> "Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
> news:guuh40$o1p$1@build.eclipse.org...
>> Hello,
>>
>> I have packaged a static profile following instructions given in the
>> presentation of EclipseCon 2008.
>> I have no problem to apply the profile to a model, however when I try to
>> apply a stereotype, a valid list of appliable stereotypes is given but
>> nothing happens when I try to apply one of them.
>> I am working on Galileo M7 with UML2 3.0.0.
>> You will find my test plug-in enclosed.
>> Does anyone have an explanation?
>>
>>
>> Regards,
>>
>> Chokri
>>
>>
>
>
|
|
|
Re: Static profile stereotype application problem [message #627610 is a reply to message #478423] |
Tue, 19 May 2009 18:06  |
Eclipse User |
|
|
|
It's the 'Camel Case Name' option that is removing the '_'.
For the time being, ensure that the option is set to "Ignore" before doing
conversions to Ecore.
Your static profile should work fine after.
Cheers,
- James.
"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:guv9pu$d19$1@build.eclipse.org...
> Hi Chokri,
>
> How did you create your "MySecondProfile.ecore" ?
>
> It seems to have incorrect "baseClass" feature on FirstSt and SecondSt.
> It should be "base_Class". For that reason, Element.getAppliedStereotypes
> is failing as well as UMLUtil.setBaseElement.
>
> Try creating your ecore representation by importing the .uml stereotype
> directly into the EMF import wizard.
> The foreign model to your .genmodel should point to the .uml model.
>
> The .ecore model generate that way should have features with "base_".
>
> In the meantime, I'll see why simply converting the .uml model with the
> menu option removes the "_".
>
> Cheers,
> - James.
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:guuium$ljb$1@build.eclipse.org...
>> This is being looked into ...
>>
>> - James.
>>
>> "Chokri Mraidha" <Chokri.Mraidha@cea.fr> wrote in message
>> news:guuh40$o1p$1@build.eclipse.org...
>>> Hello,
>>>
>>> I have packaged a static profile following instructions given in the
>>> presentation of EclipseCon 2008.
>>> I have no problem to apply the profile to a model, however when I try to
>>> apply a stereotype, a valid list of appliable stereotypes is given but
>>> nothing happens when I try to apply one of them.
>>> I am working on Galileo M7 with UML2 3.0.0.
>>> You will find my test plug-in enclosed.
>>> Does anyone have an explanation?
>>>
>>>
>>> Regards,
>>>
>>> Chokri
>>>
>>>
>>
>>
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.04488 seconds