Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Static profile stereotype application problem
Static profile stereotype application problem [message #478416] Tue, 19 May 2009 14:46 Go to next message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
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 15:27 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 21:57 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 22:06 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 06:01 Go to previous message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
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 15:27 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 21:57 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 22:06 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
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 06:01 Go to previous message
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member
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: Sat Apr 20 02:11:13 GMT 2024

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

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

Back to the top