Skip to main content



      Home
Home » Modeling » UML2 » Static profile stereotype application problem
Static profile stereotype application problem [message #478416] Tue, 19 May 2009 10:46 Go to next message
Eclipse UserFriend
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 #478418 is a reply to message #478416] Tue, 19 May 2009 11:27 Go to previous messageGo to next message
Eclipse UserFriend
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 #478423 is a reply to message #478418] Tue, 19 May 2009 17:57 Go to previous messageGo to next message
Eclipse UserFriend
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 #478424 is a reply to message #478423] Tue, 19 May 2009 18:06 Go to previous messageGo to next message
Eclipse UserFriend
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 #478426 is a reply to message #478424] Wed, 20 May 2009 02:01 Go to previous message
Eclipse UserFriend
Thanks James, ignoring the Camel Case Name makes it work.


Cheers,

Chokri


"James Bruck" <jbruck@ca.ibm.com> a
Re: Static profile stereotype application problem [message #627603 is a reply to message #478416] Tue, 19 May 2009 11:27 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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 #627612 is a reply to message #478424] Wed, 20 May 2009 02:01 Go to previous message
Eclipse UserFriend
Thanks James, ignoring the Camel Case Name makes it work.


Cheers,

Chokri


"James Bruck" <jbruck@ca.ibm.com> a
Previous Topic:UML API : BehavioralFeature::setMethod(Behavior behavior) is missing ?
Next Topic:fUML_Library.uml
Goto Forum:
  


Current Time: Fri Jul 04 16:34:35 EDT 2025

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

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

Back to the top