Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 17:04
Dave Carlson is currently offline Dave CarlsonFriend
Messages: 402
Registered: July 2009
Senior Member
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, whereas 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">
uri = ""
class = "org.eclipse.uml2.uml.UMLPackage"
genModel = "model/UML.genmodel" />
<extension point="org.eclipse.emf.ecore.generated_package">
uri = ""
class = "org.eclipse.uml2.uml.UMLPackage"
genModel = "model/UML.genmodel" />

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

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

Current Time: Fri Apr 10 09:32:29 GMT 2020

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

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

Back to the top