I thought there was an MDT/UML2 enhancement Bugzilla open for previous
versions but I can't find it.
Anyway, the reality is that unless someone comes forward to fund
multi-version save it's unlikely to happen.
Once implemented, for a previous version I would expect to do
ResourceSet.createResource(URI, String)
where String is the required content type.
Regards
Ed Willink
On 16/01/2013 08:47, Andreas Brieg wrote:
> I'm using org.eclipse.uml2.uml 4.0.1 to create an UML model. The model
> is saved in a .uml file with
> xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML". I would like it to
> be saved with xmlns:uml="http://www.eclipse.org/uml2/4.0.0/UML".
>
> My code for creating the resource currently looks like this:
>
> Resource resource =
> UML302UMLResource.Factory.INSTANCE.createResource(uri);
>
>
> And I save it with no options:
>
> resource.save(null);
>
>
> What do I have to do, to save my model with the XML Namespace of
> UML302UMLResource? Do I have to specify an option. If yes, which one
> is it?
>
> Thanks
Andreas Brieg Messages: 48 Registered: November 2012
Member
Thanks for your answer Ed. I meant xmlns:uml="http://www.eclipse.org/uml2/3.0.0/UML" as the xml namespace the I would like to have. I corrected this here in the forum. So as there is no easy workaround, I will fall back on using an older version of the UML API.