Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2m-dev] problem with ATL engine integration in plug-in

hi,

I developed a plug-in in which I integrated the ATL engine to propose
model-to-model transformation. This plug-in works correctly in the
runtime environment. But when I deploy this plug-in I compilation
errors.

My question is how do you export a plugin integrating ATL without
errors?

-- 
David OUAGNE
INSERM UMRS 872, eq. 20 Université René Descartes PARIS FRANCE
# 17/10/08 10:08:21 GMT+01:00
# Eclipse Java Compiler 0.883_R34x, 3.4.1 release, Copyright IBM Corp 2000, 2008. All rights reserved.
----------
1. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 27)
	import org.eclipse.m2m.atl.engine.AtlEMFModelHandler;
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlEMFModelHandler cannot be resolved
----------
2. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 28)
	import org.eclipse.m2m.atl.engine.AtlLauncher;
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlLauncher cannot be resolved
----------
3. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 29)
	import org.eclipse.m2m.atl.engine.AtlModelHandler;
	       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlModelHandler cannot be resolved
----------
4. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 41)
	private AtlEMFModelHandler amh = (AtlEMFModelHandler) AtlModelHandler.getDefault(AtlEMFModelHandler.AMH_EMF); 
	        ^^^^^^^^^^^^^^^^^^
AtlEMFModelHandler cannot be resolved to a type
----------
5. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 41)
	private AtlEMFModelHandler amh = (AtlEMFModelHandler) AtlModelHandler.getDefault(AtlEMFModelHandler.AMH_EMF); 
	                                  ^^^^^^^^^^^^^^^^^^
AtlEMFModelHandler cannot be resolved to a type
----------
6. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 41)
	private AtlEMFModelHandler amh = (AtlEMFModelHandler) AtlModelHandler.getDefault(AtlEMFModelHandler.AMH_EMF); 
	                                                      ^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved
----------
7. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 41)
	private AtlEMFModelHandler amh = (AtlEMFModelHandler) AtlModelHandler.getDefault(AtlEMFModelHandler.AMH_EMF); 
	                                                                                 ^^^^^^^^^^^^^^^^^^
AtlEMFModelHandler cannot be resolved
----------
8. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 158)
	AtlLauncher.getDefault().launch(mAsmUrl, Collections.EMPTY_MAP, transfoModels, Collections.EMPTY_MAP, Collections.EMPTY_LIST, Collections.EMPTY_MAP);
	^^^^^^^^^^^
AtlLauncher cannot be resolved
----------
9. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 198)
	transfoModels.put("MOF", amh.getMof()); //$NON-NLS-1$
	                         ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
10. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 210)
	ASMModel modelIn = amh.loadModel(inParam, metamodel, inFile.toURI().toString()); // inModelStream);
	                   ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
11. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 225)
	transfoModels.put("MOF", amh.getMof()); //$NON-NLS-1$
	                         ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
12. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 237)
	ASMModel modelOut = amh.newModel(models.get(outParam), metamodel);
	                    ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
13. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 254)
	amh.saveModel(transfoModels.get(outParam), pathProject.append(models.get(outParam)).toString());
	^^^
AtlEMFModelHandler cannot be resolved to a type
----------
14. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 277)
	return amh.loadModel(metamodel, amh.getMof(), mmUri);
	       ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
15. ERROR in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/Transformation.java (at line 277)
	return amh.loadModel(metamodel, amh.getMof(), mmUri);
	                                ^^^
AtlEMFModelHandler cannot be resolved to a type
----------
----------
16. WARNING in /home/david/Workspace-3.4/org.topcased.service.transformation/src/org/topcased/service/transformation/services/TransformationService.java (at line 37)
	Map<String, String> models = (Map<String, String>) parameters.get("Models");
	                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Type safety: Unchecked cast from Object to Map<String,String>
----------
16 problems (15 errors, 1 warning)

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


Back to the top