Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » ATL transformation
ATL transformation [message #77744] Thu, 27 March 2008 16:50
Eclipse UserFriend
Originally posted by: yassin.chkouri.imag.fr

I am making a transormation from model to model and generated code from
the latter model.
I put this code . the generation is OK but i have the error message in the
console.
Thank's for your help.

// create an xml resource factory
Resource.Factory factory = new Ecore2XMLResourceFactoryImpl();
Resource poResource = factory.createResource(timedFileURI);
// add the model in the xml resource file
poResource.getContents().add(bipModel);
// and save it
poResource.save(null);
BipTransformation bip2source = new
BipTransformation(bipResources.getBipHome()) ;
bip2source.runBipUntimedTransformation(timedFileURI,
untimedFileURI) ;
bip2source.runBip2SrcTransformation(untimedFileURI) ;

------------------------------------------------------------ ------------------------------------------------------------ -------------------------------------------
SEVERE: Resource
'/resource/cruise_data/bip/cruise_data_cruise_sys_i_Instance .model' does
not exist.
org.eclipse.core.internal.resources.ResourceException: Resource
'/resource/cruise_data/bip/cruise_data_cruise_sys_i_Instance .model' does
not exist.
at
org.eclipse.core.internal.resources.Resource.checkExists(Res ource.java:310)
at
org.eclipse.core.internal.resources.Resource.checkAccessible (Resource.java:193)
at
org.eclipse.core.internal.resources.Resource.setDerived(Reso urce.java:1478)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:145)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlE MFModelHandler.java:61)
at
ujf.verimag.bip.transformation.BipTransformation.runBipUntim edTransformation(BipTransformation.java:304)
at
ujf.verimag.bip.aadl2bip.generation.CreateBipComponent.saveA ndCompleteGeneration(CreateBipComponent.java:364)
at
ujf.verimag.bip.aadl2bip.generation.AadlBipGeneration.doAaxl Action(AadlBipGeneration.java:61)
at
edu.cmu.sei.osate.ui.actions.AbstractAaxlAction.processAaxlA ction(AbstractAaxlAction.java:527)
at
edu.cmu.sei.osate.ui.actions.AbstractAaxlAction.actionBody(A bstractAaxlAction.java:209)
at
edu.cmu.sei.osate.ui.actions.AaxlReadOnlyActionAsJob$ActionA sJob.runInWorkspace(AaxlReadOnlyActionAsJob.java:137)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run (InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Previous Topic:[ATL] Does ATL work with Eclipse 3.4 and heavyweight extensions of UML2
Next Topic:[ATL]UML 2 BPEL transformation
Goto Forum:
  


Current Time: Sun Aug 25 06:43:34 GMT 2019

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

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

Back to the top