[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.m2m] [ATL] problem while saving output model

I try to move my plugin to ATL 3.0.


In ATL 3.0 (Version: 3.0.0.v200906160347 Build id: 200906160347) I can't save the output model, with the error "/com.fortytwo.ines.emf.diagram/test1.xmi (No such file or directory)", an example.
I'm even not able to start the transformation via the ATL Launcher.



I have looked in the ASMExtractor and there I see that the platform/resource/ prefix is cutted and a fileURI is created, so the the extractor tries to save the file in the normal file system, why this? Or do I miss some thing.



public void extract(IModel sourceModel, String target) throws ATLCoreException { ASMModelWrapper modelWrapper = (ASMModelWrapper)sourceModel; ASMModel asmModel = modelWrapper.getAsmModel(); try { if (target.startsWith("file:/")) { //$NON-NLS-1$ modelWrapper.getModelLoader().save(asmModel, URI.createFileURI(target.substring(6)).toString()); } else if (target.startsWith("platform:/resource")) { //$NON-NLS-1$ modelWrapper.getModelLoader().save(asmModel, URI.createFileURI(target.substring(18)).toString()); } } catch (IOException e) { throw new ATLCoreException(e.getLocalizedMessage(), e); } }


grettings , urs.