|
Re: Convert UML2 2.x to 1.x [message #477799 is a reply to message #477798] |
Wed, 08 October 2008 10:09  |
Eclipse User |
|
|
|
Hi Joachim,
Unfortunately, the backward migration is not implemented. It would
definitely be possible however. You could look at the
UML22UMLResourceHandler for some idea of the work involved ... the bulk of
the work would probably have to go into the preSave() of the resource
handler as opposed to the post load.
Keep in mind that the preSave and postLoad would not be entirely
symmetrical.
And yes, as you pointed out, the way the stereotypes and profiles were
serialized and used also changed.
Cheers,
- James.
"Joachim Back" <j.back@mid.de> wrote in message
news:gchvei$n3i$1@build.eclipse.org...
> Is it possible to convert an UML2 2.x file into an UML2 1.x file
> programmatically?
>
> I tried to apply
> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
> the other way round, but failed.
>
> The URI is e.g. still
> "pathmap://UML_METAMODELS/UML.metamodel.uml#_0" instead of the expected
> " pathmap://UML2_METAMODELS/UML2.metamodel.uml2#_m8qbA686EdiEh 75YJ_3n8g".
>
> Also the stereotype application is also done in the new way, e.g.
> <Myprofil:Mystereotype xmi:id="Component_9358733739517_2"
> base_Component="Component_9358733739517"/>
> instead of the old way
> <eAnnotations xmi:id="_7Nrw4pRXEd2rI5P6VK0UBQ"
> source="appliedStereotypes">
> <contents xmi:type="Myprofil:Mystereotype"
> xmi:id="_7Nrw45RXEd2rI5P6VK0UBQ"/>
> </eAnnotations>
|
|
|
Re: Convert UML2 2.x to 1.x [message #626998 is a reply to message #477798] |
Wed, 08 October 2008 10:09  |
Eclipse User |
|
|
|
Hi Joachim,
Unfortunately, the backward migration is not implemented. It would
definitely be possible however. You could look at the
UML22UMLResourceHandler for some idea of the work involved ... the bulk of
the work would probably have to go into the preSave() of the resource
handler as opposed to the post load.
Keep in mind that the preSave and postLoad would not be entirely
symmetrical.
And yes, as you pointed out, the way the stereotypes and profiles were
serialized and used also changed.
Cheers,
- James.
"Joachim Back" <j.back@mid.de> wrote in message
news:gchvei$n3i$1@build.eclipse.org...
> Is it possible to convert an UML2 2.x file into an UML2 1.x file
> programmatically?
>
> I tried to apply
> http://www.eclipse.org/modeling/mdt/uml2/docs/guides/UML2_2. 0_Migration_Guide/guide.html
> the other way round, but failed.
>
> The URI is e.g. still
> "pathmap://UML_METAMODELS/UML.metamodel.uml#_0" instead of the expected
> " pathmap://UML2_METAMODELS/UML2.metamodel.uml2#_m8qbA686EdiEh 75YJ_3n8g".
>
> Also the stereotype application is also done in the new way, e.g.
> <Myprofil:Mystereotype xmi:id="Component_9358733739517_2"
> base_Component="Component_9358733739517"/>
> instead of the old way
> <eAnnotations xmi:id="_7Nrw4pRXEd2rI5P6VK0UBQ"
> source="appliedStereotypes">
> <contents xmi:type="Myprofil:Mystereotype"
> xmi:id="_7Nrw45RXEd2rI5P6VK0UBQ"/>
> </eAnnotations>
|
|
|
Powered by
FUDForum. Page generated in 0.03581 seconds