Skip to main content



      Home
Home » Modeling » UML2 » apply stereotype problem with static profile
apply stereotype problem with static profile [message #477416] Wed, 21 May 2008 03:45 Go to next message
Eclipse UserFriend
Hi,

yesterday I've played with the new static profile definition feature. Thus
I followed the instructions given in the tutorial document mentioned here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480

The problem was that I couldn't apply the defined stereotype in the last
step of the tutorial - so no tada :(!
To be more precise, the stereotype can be chosen in the apply action, but
after pressing the OK button, the editor doesn't reflect the application.

Here is what the uml file looks like after the application:
<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
<uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
<packagedElement xmi:type="uml:Class" xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
name="C1"/>
<profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
<eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q" source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage" href="http://myOrg/MyStaticProfile/1#/"/>
</eAnnotations>
<appliedProfile href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
</profileApplication>
</uml:Model>
<myStaticProfile:MyVerySpecialClass xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
</xmi:XMI>

Has anybody also problems with this?

Kind regards, Andreas
Re: apply stereotype problem with static profile [message #477420 is a reply to message #477416] Wed, 21 May 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andreas,

The instructions in that document was a very rough guideline. There are
more detailed instructions in the following tutorial.
http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tutorial/

(point your update manager to the above mentioned site and you will get a
detailed step-by-step set of instructions on how that works).

In the meantime, I will retrace those steps and see if there is some other
bug that was introduced.

Cheers,
- James.




"Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
> Hi,
>
> yesterday I've played with the new static profile definition feature. Thus
> I followed the instructions given in the tutorial document mentioned here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>
> The problem was that I couldn't apply the defined stereotype in the last
> step of the tutorial - so no tada :(! To be more precise, the stereotype
> can be chosen in the apply action, but after pressing the OK button, the
> editor doesn't reflect the application.
> Here is what the uml file looks like after the application:
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
> <packagedElement xmi:type="uml:Class" xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
> name="C1"/>
> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href="http://myOrg/MyStaticProfile/1#/"/>
> </eAnnotations>
> <appliedProfile
> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
> </profileApplication>
> </uml:Model>
> <myStaticProfile:MyVerySpecialClass xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
> </xmi:XMI>
>
> Has anybody also problems with this?
>
> Kind regards, Andreas
>
>
Re: apply stereotype problem with static profile [message #477423 is a reply to message #477420] Wed, 21 May 2008 12:35 Go to previous messageGo to next message
Eclipse UserFriend
Hi James,

I've tried the more detailed tutorial. But with the same result as I mentioned
earlier...

So my guess is that there's something wrong!?

Andreas

Hello James,

> Hi Andreas,
>
> The instructions in that document was a very rough guideline. There
> are more detailed instructions in the following tutorial.
> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
> orial/
>
> (point your update manager to the above mentioned site and you will
> get a detailed step-by-step set of instructions on how that works).
>
> In the meantime, I will retrace those steps and see if there is some
> other bug that was introduced.
>
> Cheers,
> - James.
> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>
>> Hi,
>>
>> yesterday I've played with the new static profile definition feature.
>> Thus I followed the instructions given in the tutorial document
>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>
>> The problem was that I couldn't apply the defined stereotype in the
>> last
>> step of the tutorial - so no tada :(! To be more precise, the
>> stereotype
>> can be chosen in the apply action, but after pressing the OK button,
>> the
>> editor doesn't reflect the application.
>> Here is what the uml file looks like after the application:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xmi:XMI xmi:version="2.1"
>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>> <packagedElement xmi:type="uml:Class"
>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>> name="C1"/>
>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href="http://myOrg/MyStaticProfile/1#/"/>
>> </eAnnotations>
>> <appliedProfile
>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>> </profileApplication>
>> </uml:Model>
>> <myStaticProfile:MyVerySpecialClass
>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>> </xmi:XMI>
>> Has anybody also problems with this?
>>
>> Kind regards, Andreas
>>
Re: apply stereotype problem with static profile [message #477430 is a reply to message #477423] Fri, 23 May 2008 14:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andreas, James,

I was able to reproduce the problem with either instructions (.doc and
EclipseCon tutorial).
I found the problem in a new option of the UML-Ecore importer (as of
2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
the stereotype to baseClass. Setting this option to "Ignore" resolves
the issue and everything works fine.

Marco


Andreas Werner schrieb:
> Hi James,
>
> I've tried the more detailed tutorial. But with the same result as I
> mentioned earlier...
>
> So my guess is that there's something wrong!?
>
> Andreas
>
> Hello James,
>
>> Hi Andreas,
>>
>> The instructions in that document was a very rough guideline. There
>> are more detailed instructions in the following tutorial.
>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>> orial/
>>
>> (point your update manager to the above mentioned site and you will
>> get a detailed step-by-step set of instructions on how that works).
>>
>> In the meantime, I will retrace those steps and see if there is some
>> other bug that was introduced.
>>
>> Cheers,
>> - James.
>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>
>>> Hi,
>>>
>>> yesterday I've played with the new static profile definition feature.
>>> Thus I followed the instructions given in the tutorial document
>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>
>>> The problem was that I couldn't apply the defined stereotype in the
>>> last
>>> step of the tutorial - so no tada :(! To be more precise, the
>>> stereotype
>>> can be chosen in the apply action, but after pressing the OK button,
>>> the
>>> editor doesn't reflect the application.
>>> Here is what the uml file looks like after the application:
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <xmi:XMI xmi:version="2.1"
>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>> <packagedElement xmi:type="uml:Class"
>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>> name="C1"/>
>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <references xmi:type="ecore:EPackage"
>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>> </eAnnotations>
>>> <appliedProfile
>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>> </profileApplication>
>>> </uml:Model>
>>> <myStaticProfile:MyVerySpecialClass
>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>> </xmi:XMI>
>>> Has anybody also problems with this?
>>>
>>> Kind regards, Andreas
>>>
>
>
Re: apply stereotype problem with static profile [message #477441 is a reply to message #477430] Mon, 26 May 2008 05:09 Go to previous messageGo to next message
Eclipse UserFriend
Hello Marco,

changing the option did indeed work!

Thank you very much,
Andreas

> Hi Andreas, James,
>
> I was able to reproduce the problem with either instructions (.doc and
> EclipseCon tutorial).
> I found the problem in a new option of the UML-Ecore importer (as of
> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference
> of
> the stereotype to baseClass. Setting this option to "Ignore" resolves
> the issue and everything works fine.
> Marco
>
> Andreas Werner schrieb:
>
>> Hi James,
>>
>> I've tried the more detailed tutorial. But with the same result as I
>> mentioned earlier...
>>
>> So my guess is that there's something wrong!?
>>
>> Andreas
>>
>> Hello James,
>>
>>> Hi Andreas,
>>>
>>> The instructions in that document was a very rough guideline. There
>>> are more detailed instructions in the following tutorial.
>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-T
>>> ut orial/
>>>
>>> (point your update manager to the above mentioned site and you will
>>> get a detailed step-by-step set of instructions on how that works).
>>>
>>> In the meantime, I will retrace those steps and see if there is some
>>> other bug that was introduced.
>>>
>>> Cheers,
>>> - James.
>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>> Hi,
>>>>
>>>> yesterday I've played with the new static profile definition
>>>> feature. Thus I followed the instructions given in the tutorial
>>>> document mentioned here:
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>
>>>> The problem was that I couldn't apply the defined stereotype in the
>>>> last
>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>> stereotype
>>>> can be chosen in the apply action, but after pressing the OK
>>>> button,
>>>> the
>>>> editor doesn't reflect the application.
>>>> Here is what the uml file looks like after the application:
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <xmi:XMI xmi:version="2.1"
>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>> <packagedElement xmi:type="uml:Class"
>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>> name="C1"/>
>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <references xmi:type="ecore:EPackage"
>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>> </eAnnotations>
>>>> <appliedProfile
>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>> </profileApplication>
>>>> </uml:Model>
>>>> <myStaticProfile:MyVerySpecialClass
>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>> </xmi:XMI>
>>>> Has anybody also problems with this?
>>>> Kind regards, Andreas
>>>>
Re: apply stereotype problem with static profile [message #477444 is a reply to message #477430] Mon, 26 May 2008 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for that Marco,

I was using "ignore" and could not reproduce the issue myself. I will have
a look at fixing that.

Cheers,
- James.


"Marco Mosconi" <mosconi@cs.tu-berlin.de> wrote in message
news:g170q6$kce$1@build.eclipse.org...
> Hi Andreas, James,
>
> I was able to reproduce the problem with either instructions (.doc and
> EclipseCon tutorial).
> I found the problem in a new option of the UML-Ecore importer (as of
> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
> the stereotype to baseClass. Setting this option to "Ignore" resolves the
> issue and everything works fine.
>
> Marco
>
>
> Andreas Werner schrieb:
>> Hi James,
>>
>> I've tried the more detailed tutorial. But with the same result as I
>> mentioned earlier...
>>
>> So my guess is that there's something wrong!?
>>
>> Andreas
>>
>> Hello James,
>>
>>> Hi Andreas,
>>>
>>> The instructions in that document was a very rough guideline. There
>>> are more detailed instructions in the following tutorial.
>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>>> orial/
>>>
>>> (point your update manager to the above mentioned site and you will
>>> get a detailed step-by-step set of instructions on how that works).
>>>
>>> In the meantime, I will retrace those steps and see if there is some
>>> other bug that was introduced.
>>>
>>> Cheers,
>>> - James.
>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>
>>>> Hi,
>>>>
>>>> yesterday I've played with the new static profile definition feature.
>>>> Thus I followed the instructions given in the tutorial document
>>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>
>>>> The problem was that I couldn't apply the defined stereotype in the
>>>> last
>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>> stereotype
>>>> can be chosen in the apply action, but after pressing the OK button,
>>>> the
>>>> editor doesn't reflect the application.
>>>> Here is what the uml file looks like after the application:
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <xmi:XMI xmi:version="2.1"
>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>> <packagedElement xmi:type="uml:Class"
>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>> name="C1"/>
>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <references xmi:type="ecore:EPackage"
>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>> </eAnnotations>
>>>> <appliedProfile
>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>> </profileApplication>
>>>> </uml:Model>
>>>> <myStaticProfile:MyVerySpecialClass
>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>> </xmi:XMI>
>>>> Has anybody also problems with this?
>>>>
>>>> Kind regards, Andreas
>>>>
>>
Re: apply stereotype problem with static profile [message #477445 is a reply to message #477444] Mon, 26 May 2008 09:43 Go to previous message
Eclipse UserFriend
Hi James,

I don't know about the "magic" that computes the camelcase names (and
how needs this ;-) but perhaps the converter could/should just ignore
this feature for Profiles in general.

Marco

James Bruck schrieb:
> Thanks for that Marco,
>
> I was using "ignore" and could not reproduce the issue myself. I will have
> a look at fixing that.
>
> Cheers,
> - James.
>
>
> "Marco Mosconi" <mosconi@cs.tu-berlin.de> wrote in message
> news:g170q6$kce$1@build.eclipse.org...
>> Hi Andreas, James,
>>
>> I was able to reproduce the problem with either instructions (.doc and
>> EclipseCon tutorial).
>> I found the problem in a new option of the UML-Ecore importer (as of
>> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
>> the stereotype to baseClass. Setting this option to "Ignore" resolves the
>> issue and everything works fine.
>>
>> Marco
>>
>>
>> Andreas Werner schrieb:
>>> Hi James,
>>>
>>> I've tried the more detailed tutorial. But with the same result as I
>>> mentioned earlier...
>>>
>>> So my guess is that there's something wrong!?
>>>
>>> Andreas
>>>
>>> Hello James,
>>>
>>>> Hi Andreas,
>>>>
>>>> The instructions in that document was a very rough guideline. There
>>>> are more detailed instructions in the following tutorial.
>>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>>>> orial/
>>>>
>>>> (point your update manager to the above mentioned site and you will
>>>> get a detailed step-by-step set of instructions on how that works).
>>>>
>>>> In the meantime, I will retrace those steps and see if there is some
>>>> other bug that was introduced.
>>>>
>>>> Cheers,
>>>> - James.
>>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>>
>>>>> Hi,
>>>>>
>>>>> yesterday I've played with the new static profile definition feature.
>>>>> Thus I followed the instructions given in the tutorial document
>>>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>>
>>>>> The problem was that I couldn't apply the defined stereotype in the
>>>>> last
>>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>>> stereotype
>>>>> can be chosen in the apply action, but after pressing the OK button,
>>>>> the
>>>>> editor doesn't reflect the application.
>>>>> Here is what the uml file looks like after the application:
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <xmi:XMI xmi:version="2.1"
>>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>>> <packagedElement xmi:type="uml:Class"
>>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>>> name="C1"/>
>>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>>> <references xmi:type="ecore:EPackage"
>>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>>> </eAnnotations>
>>>>> <appliedProfile
>>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>>> </profileApplication>
>>>>> </uml:Model>
>>>>> <myStaticProfile:MyVerySpecialClass
>>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>>> </xmi:XMI>
>>>>> Has anybody also problems with this?
>>>>>
>>>>> Kind regards, Andreas
>>>>>
>
Re: apply stereotype problem with static profile [message #626602 is a reply to message #477416] Wed, 21 May 2008 11:34 Go to previous message
Eclipse UserFriend
Hi Andreas,

The instructions in that document was a very rough guideline. There are
more detailed instructions in the following tutorial.
http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tutorial/

(point your update manager to the above mentioned site and you will get a
detailed step-by-step set of instructions on how that works).

In the meantime, I will retrace those steps and see if there is some other
bug that was introduced.

Cheers,
- James.




"Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
> Hi,
>
> yesterday I've played with the new static profile definition feature. Thus
> I followed the instructions given in the tutorial document mentioned here:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>
> The problem was that I couldn't apply the defined stereotype in the last
> step of the tutorial - so no tada :(! To be more precise, the stereotype
> can be chosen in the apply action, but after pressing the OK button, the
> editor doesn't reflect the application.
> Here is what the uml file looks like after the application:
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
> <packagedElement xmi:type="uml:Class" xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
> name="C1"/>
> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href="http://myOrg/MyStaticProfile/1#/"/>
> </eAnnotations>
> <appliedProfile
> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
> </profileApplication>
> </uml:Model>
> <myStaticProfile:MyVerySpecialClass xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
> </xmi:XMI>
>
> Has anybody also problems with this?
>
> Kind regards, Andreas
>
>
Re: apply stereotype problem with static profile [message #626605 is a reply to message #477420] Wed, 21 May 2008 12:35 Go to previous message
Eclipse UserFriend
Hi James,

I've tried the more detailed tutorial. But with the same result as I mentioned
earlier...

So my guess is that there's something wrong!?

Andreas

Hello James,

> Hi Andreas,
>
> The instructions in that document was a very rough guideline. There
> are more detailed instructions in the following tutorial.
> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
> orial/
>
> (point your update manager to the above mentioned site and you will
> get a detailed step-by-step set of instructions on how that works).
>
> In the meantime, I will retrace those steps and see if there is some
> other bug that was introduced.
>
> Cheers,
> - James.
> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>
>> Hi,
>>
>> yesterday I've played with the new static profile definition feature.
>> Thus I followed the instructions given in the tutorial document
>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>
>> The problem was that I couldn't apply the defined stereotype in the
>> last
>> step of the tutorial - so no tada :(! To be more precise, the
>> stereotype
>> can be chosen in the apply action, but after pressing the OK button,
>> the
>> editor doesn't reflect the application.
>> Here is what the uml file looks like after the application:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xmi:XMI xmi:version="2.1"
>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>> <packagedElement xmi:type="uml:Class"
>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>> name="C1"/>
>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href="http://myOrg/MyStaticProfile/1#/"/>
>> </eAnnotations>
>> <appliedProfile
>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>> </profileApplication>
>> </uml:Model>
>> <myStaticProfile:MyVerySpecialClass
>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>> </xmi:XMI>
>> Has anybody also problems with this?
>>
>> Kind regards, Andreas
>>
Re: apply stereotype problem with static profile [message #626612 is a reply to message #477423] Fri, 23 May 2008 14:01 Go to previous message
Eclipse UserFriend
Hi Andreas, James,

I was able to reproduce the problem with either instructions (.doc and
EclipseCon tutorial).
I found the problem in a new option of the UML-Ecore importer (as of
2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
the stereotype to baseClass. Setting this option to "Ignore" resolves
the issue and everything works fine.

Marco


Andreas Werner schrieb:
> Hi James,
>
> I've tried the more detailed tutorial. But with the same result as I
> mentioned earlier...
>
> So my guess is that there's something wrong!?
>
> Andreas
>
> Hello James,
>
>> Hi Andreas,
>>
>> The instructions in that document was a very rough guideline. There
>> are more detailed instructions in the following tutorial.
>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>> orial/
>>
>> (point your update manager to the above mentioned site and you will
>> get a detailed step-by-step set of instructions on how that works).
>>
>> In the meantime, I will retrace those steps and see if there is some
>> other bug that was introduced.
>>
>> Cheers,
>> - James.
>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>
>>> Hi,
>>>
>>> yesterday I've played with the new static profile definition feature.
>>> Thus I followed the instructions given in the tutorial document
>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>
>>> The problem was that I couldn't apply the defined stereotype in the
>>> last
>>> step of the tutorial - so no tada :(! To be more precise, the
>>> stereotype
>>> can be chosen in the apply action, but after pressing the OK button,
>>> the
>>> editor doesn't reflect the application.
>>> Here is what the uml file looks like after the application:
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <xmi:XMI xmi:version="2.1"
>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>> <packagedElement xmi:type="uml:Class"
>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>> name="C1"/>
>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>> <references xmi:type="ecore:EPackage"
>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>> </eAnnotations>
>>> <appliedProfile
>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>> </profileApplication>
>>> </uml:Model>
>>> <myStaticProfile:MyVerySpecialClass
>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>> </xmi:XMI>
>>> Has anybody also problems with this?
>>>
>>> Kind regards, Andreas
>>>
>
>
Re: apply stereotype problem with static profile [message #626623 is a reply to message #477430] Mon, 26 May 2008 05:09 Go to previous message
Eclipse UserFriend
Hello Marco,

changing the option did indeed work!

Thank you very much,
Andreas

> Hi Andreas, James,
>
> I was able to reproduce the problem with either instructions (.doc and
> EclipseCon tutorial).
> I found the problem in a new option of the UML-Ecore importer (as of
> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference
> of
> the stereotype to baseClass. Setting this option to "Ignore" resolves
> the issue and everything works fine.
> Marco
>
> Andreas Werner schrieb:
>
>> Hi James,
>>
>> I've tried the more detailed tutorial. But with the same result as I
>> mentioned earlier...
>>
>> So my guess is that there's something wrong!?
>>
>> Andreas
>>
>> Hello James,
>>
>>> Hi Andreas,
>>>
>>> The instructions in that document was a very rough guideline. There
>>> are more detailed instructions in the following tutorial.
>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-T
>>> ut orial/
>>>
>>> (point your update manager to the above mentioned site and you will
>>> get a detailed step-by-step set of instructions on how that works).
>>>
>>> In the meantime, I will retrace those steps and see if there is some
>>> other bug that was introduced.
>>>
>>> Cheers,
>>> - James.
>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>> Hi,
>>>>
>>>> yesterday I've played with the new static profile definition
>>>> feature. Thus I followed the instructions given in the tutorial
>>>> document mentioned here:
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>
>>>> The problem was that I couldn't apply the defined stereotype in the
>>>> last
>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>> stereotype
>>>> can be chosen in the apply action, but after pressing the OK
>>>> button,
>>>> the
>>>> editor doesn't reflect the application.
>>>> Here is what the uml file looks like after the application:
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <xmi:XMI xmi:version="2.1"
>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>> <packagedElement xmi:type="uml:Class"
>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>> name="C1"/>
>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <references xmi:type="ecore:EPackage"
>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>> </eAnnotations>
>>>> <appliedProfile
>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>> </profileApplication>
>>>> </uml:Model>
>>>> <myStaticProfile:MyVerySpecialClass
>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>> </xmi:XMI>
>>>> Has anybody also problems with this?
>>>> Kind regards, Andreas
>>>>
Re: apply stereotype problem with static profile [message #626626 is a reply to message #477430] Mon, 26 May 2008 09:27 Go to previous message
Eclipse UserFriend
Thanks for that Marco,

I was using "ignore" and could not reproduce the issue myself. I will have
a look at fixing that.

Cheers,
- James.


"Marco Mosconi" <mosconi@cs.tu-berlin.de> wrote in message
news:g170q6$kce$1@build.eclipse.org...
> Hi Andreas, James,
>
> I was able to reproduce the problem with either instructions (.doc and
> EclipseCon tutorial).
> I found the problem in a new option of the UML-Ecore importer (as of
> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
> the stereotype to baseClass. Setting this option to "Ignore" resolves the
> issue and everything works fine.
>
> Marco
>
>
> Andreas Werner schrieb:
>> Hi James,
>>
>> I've tried the more detailed tutorial. But with the same result as I
>> mentioned earlier...
>>
>> So my guess is that there's something wrong!?
>>
>> Andreas
>>
>> Hello James,
>>
>>> Hi Andreas,
>>>
>>> The instructions in that document was a very rough guideline. There
>>> are more detailed instructions in the following tutorial.
>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>>> orial/
>>>
>>> (point your update manager to the above mentioned site and you will
>>> get a detailed step-by-step set of instructions on how that works).
>>>
>>> In the meantime, I will retrace those steps and see if there is some
>>> other bug that was introduced.
>>>
>>> Cheers,
>>> - James.
>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>
>>>> Hi,
>>>>
>>>> yesterday I've played with the new static profile definition feature.
>>>> Thus I followed the instructions given in the tutorial document
>>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>
>>>> The problem was that I couldn't apply the defined stereotype in the
>>>> last
>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>> stereotype
>>>> can be chosen in the apply action, but after pressing the OK button,
>>>> the
>>>> editor doesn't reflect the application.
>>>> Here is what the uml file looks like after the application:
>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>> <xmi:XMI xmi:version="2.1"
>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>> <packagedElement xmi:type="uml:Class"
>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>> name="C1"/>
>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>> <references xmi:type="ecore:EPackage"
>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>> </eAnnotations>
>>>> <appliedProfile
>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>> </profileApplication>
>>>> </uml:Model>
>>>> <myStaticProfile:MyVerySpecialClass
>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>> </xmi:XMI>
>>>> Has anybody also problems with this?
>>>>
>>>> Kind regards, Andreas
>>>>
>>
Re: apply stereotype problem with static profile [message #626627 is a reply to message #477444] Mon, 26 May 2008 09:43 Go to previous message
Eclipse UserFriend
Hi James,

I don't know about the "magic" that computes the camelcase names (and
how needs this ;-) but perhaps the converter could/should just ignore
this feature for Profiles in general.

Marco

James Bruck schrieb:
> Thanks for that Marco,
>
> I was using "ignore" and could not reproduce the issue myself. I will have
> a look at fixing that.
>
> Cheers,
> - James.
>
>
> "Marco Mosconi" <mosconi@cs.tu-berlin.de> wrote in message
> news:g170q6$kce$1@build.eclipse.org...
>> Hi Andreas, James,
>>
>> I was able to reproduce the problem with either instructions (.doc and
>> EclipseCon tutorial).
>> I found the problem in a new option of the UML-Ecore importer (as of
>> 2.2.0RC1): "Camel Case Names", which changes the base_Class reference of
>> the stereotype to baseClass. Setting this option to "Ignore" resolves the
>> issue and everything works fine.
>>
>> Marco
>>
>>
>> Andreas Werner schrieb:
>>> Hi James,
>>>
>>> I've tried the more detailed tutorial. But with the same result as I
>>> mentioned earlier...
>>>
>>> So my guess is that there's something wrong!?
>>>
>>> Andreas
>>>
>>> Hello James,
>>>
>>>> Hi Andreas,
>>>>
>>>> The instructions in that document was a very rough guideline. There
>>>> are more detailed instructions in the following tutorial.
>>>> http://archive.eclipse.org/modeling/mdt/updates/EclipseCon20 08-UML-Tut
>>>> orial/
>>>>
>>>> (point your update manager to the above mentioned site and you will
>>>> get a detailed step-by-step set of instructions on how that works).
>>>>
>>>> In the meantime, I will retrace those steps and see if there is some
>>>> other bug that was introduced.
>>>>
>>>> Cheers,
>>>> - James.
>>>> "Andreas Werner" <andreas.werner@itso-berlin.de> wrote in message
>>>> news:cae16bdf4e7038ca893e96fcf7f2@news.eclipse.org...
>>>>
>>>>> Hi,
>>>>>
>>>>> yesterday I've played with the new static profile definition feature.
>>>>> Thus I followed the instructions given in the tutorial document
>>>>> mentioned here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=205480
>>>>>
>>>>> The problem was that I couldn't apply the defined stereotype in the
>>>>> last
>>>>> step of the tutorial - so no tada :(! To be more precise, the
>>>>> stereotype
>>>>> can be chosen in the apply action, but after pressing the OK button,
>>>>> the
>>>>> editor doesn't reflect the application.
>>>>> Here is what the uml file looks like after the application:
>>>>> <?xml version="1.0" encoding="UTF-8"?>
>>>>> <xmi:XMI xmi:version="2.1"
>>>>> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>>>>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>>>>> xmlns:myStaticProfile="http://myOrg/MyStaticProfile/1"
>>>>> xmlns:uml="http://www.eclipse.org/uml2/2.1.0/UML">
>>>>> <uml:Model xmi:id="_R0UCgCZaEd2E9PIG8J1dpA">
>>>>> <packagedElement xmi:type="uml:Class"
>>>>> xmi:id="_8WBfgCZaEd2ORuhidzgP6Q"
>>>>> name="C1"/>
>>>>> <profileApplication xmi:id="_2z9oUCZeEd2ORuhidzgP6Q">
>>>>> <eAnnotations xmi:id="_2z9oUSZeEd2ORuhidzgP6Q"
>>>>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>>>>> <references xmi:type="ecore:EPackage"
>>>>> href="http://myOrg/MyStaticProfile/1#/"/>
>>>>> </eAnnotations>
>>>>> <appliedProfile
>>>>> href="MyStaticProfile.profile.uml#_EFqWoCZZEd2kmddgvlfjBA"/ >
>>>>> </profileApplication>
>>>>> </uml:Model>
>>>>> <myStaticProfile:MyVerySpecialClass
>>>>> xmi:id="_TtEhoCZfEd2ORuhidzgP6Q"/>
>>>>> </xmi:XMI>
>>>>> Has anybody also problems with this?
>>>>>
>>>>> Kind regards, Andreas
>>>>>
>
Previous Topic:Re: Model Reader - Documentation issue.
Next Topic:Re: Profile DataType uml editor
Goto Forum:
  


Current Time: Sun Jul 06 13:46:01 EDT 2025

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

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

Back to the top