Skip to main content



      Home
Home » Modeling » UML2 » Compatibility of models from 2.0.3 and 2.1
Compatibility of models from 2.0.3 and 2.1 [message #622662] Thu, 28 June 2007 13:04
Eclipse UserFriend
I saved a model using UML2 2.1 (created using the UML2Tools editor), then
attempted to open it in an older workspace using UML2 2.0.3. I got lots of
ClassCastException and NullPointerException, resulting from EMF
deserializing everything to AnyType. Opening in the UML2 tree editor for
2.0.3, it defaulted to the EMF generic reflective edit providers.

I discovered that this is because UML2.2.1 saves models using the URI
http://www.eclipse.org/uml2/2.1.0/UML, whereas
http://www.eclipse.org/uml2/2.0.0/UML is used in the 2.0.3 release. I found
a note about this in the New and Noteworthy. However, a specific note about
lack of backward compatibility should be added.

In the 2.1 release of org.eclipse.uml2.uml, the following extension points
allow both new and old models to be opened:

<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.eclipse.org/uml2/2.0.0/UML"
class = "org.eclipse.uml2.uml.UMLPackage"
genModel = "model/UML.genmodel" />
</extension>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri = "http://www.eclipse.org/uml2/2.1.0/UML"
class = "org.eclipse.uml2.uml.UMLPackage"
genModel = "model/UML.genmodel" />
</extension>

If I add the 2.1.0 URI declaration to my plugin used with UML2 2.0.3, then
new models are opened there without error. Although, I realize that some
Activity models created using the new release will not open successfully in
the 2.0.3 tools.

Any other workarounds to allow new models to be opened in 2.0.3 release
tools?

Thanks,
Dave Carlson
Previous Topic:Validation Problem
Next Topic:Constructing component diargams
Goto Forum:
  


Current Time: Sat Jul 19 05:32:45 EDT 2025

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

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

Back to the top