[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] [ATL] problem with with xmi output

Hello Everyone!

I have a problem with the result of my transformation to UML 2.1 file. When I run it from ant file then everything is OK. But, when I run my transofrmation from Java code then I obtain the same data but in XMI 2.0! Correct version is XMI 2.1. What could I have done wrong? How can I change the output format in Java?

Below is a fragment of my code:

umlMetamodelRes = URI.createURI("http://www.eclipse.org/uml2/2.1.0/UML";, false);

umlMetamodel = (ASMEMFModel) modelHandler.loadModel("UML", modelHandler
				.getMof(), umlMetamodelRes);

mdl2umlLib = ATLRunner.class.getClassLoader().getResource(
				"atl/MDL2UML21.asm");
[...]

ASMEMFModel umlOutputModel = (ASMEMFModel) modelHandler.newModel("OUT", location.toString(), umlMetamodel);

AtlLauncher.getDefault().launch(this.mdl2umlLib, libs, models, Collections.EMPTY_MAP, Collections.EMPTY_LIST, Collections.EMPTY_MAP);

[...]

Thanks in advance!