[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
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(Resource.java:310)
at
org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:193)
at
org.eclipse.core.internal.resources.Resource.setDerived(Resource.java:1478)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlEMFModelHandler.java:145)
at
org.eclipse.m2m.atl.engine.AtlEMFModelHandler.saveModel(AtlEMFModelHandler.java:61)
at
ujf.verimag.bip.transformation.BipTransformation.runBipUntimedTransformation(BipTransformation.java:304)
at
ujf.verimag.bip.aadl2bip.generation.CreateBipComponent.saveAndCompleteGeneration(CreateBipComponent.java:364)
at
ujf.verimag.bip.aadl2bip.generation.AadlBipGeneration.doAaxlAction(AadlBipGeneration.java:61)
at
edu.cmu.sei.osate.ui.actions.AbstractAaxlAction.processAaxlAction(AbstractAaxlAction.java:527)
at
edu.cmu.sei.osate.ui.actions.AbstractAaxlAction.actionBody(AbstractAaxlAction.java:209)
at
edu.cmu.sei.osate.ui.actions.AaxlReadOnlyActionAsJob$ActionAsJob.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)