[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2m-dev] problem with ATL engine integration in plug-in
|
Hi,
I develop a plugin which integrates ATL transform. In development
environnement it work fine.
But when I exporting this plugin (Export/Deployable plug-ins and
fragments), I have many errors in compilation (we can see in log file).
I do not understand why in the development environment compilation goes
well until then export the compilation contains errors.
PS : You can see above ATL dependencies
import org.eclipse.m2m.atl.drivers.uml24atl.ASMUMLModel;
import org.eclipse.m2m.atl.drivers.uml24atl.AtlUML2ModelHandler;
import org.eclipse.m2m.atl.engine.AtlEMFModelHandler;
import org.eclipse.m2m.atl.engine.AtlLauncher;
import org.eclipse.m2m.atl.engine.AtlModelHandler;
import org.eclipse.m2m.atl.engine.vm.nativelib.ASMModel;
Le mercredi 22 octobre 2008 à 17:46 +0200, David Ouagne a écrit :
> The last available (2.0.1v200809170426) of ATL SDK plug-in. I use this
> version to develop and export the plug-in.
>
> Le mercredi 22 octobre 2008 à 17:08 +0200, William Piers a écrit :
> > Hello,
> >
> > Could you please tell me which version of ATL do you use, for coding
> > your plugin and deploying the whole application ?
> > I'm asking for because the main difference between the last ATL 2
> > release and the source code available on CVS HEAD, is that the
> > AtlLauncher and EMFModelHandler (missing classes in your errors) have
> > moved to other plugins: the HEAD branch is refactored in order to
> > prepare the next ATL release.
> > If you want to work with ATL 2 release source code, there is a branch on
> > CVS called R2_0_maintenance.
> >
> > Best regards,
> >
> > William Piers
> >
> > David Ouagne a écrit :
> > > 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?
> > >
> > >
> > > ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > m2m-dev mailing list
> > > m2m-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/m2m-dev
> >
> > _______________________________________________
> > m2m-dev mailing list
> > m2m-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/m2m-dev
> _______________________________________________
> m2m-dev mailing list
> m2m-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2m-dev
--
David OUAGNE
INSERM UMRS 872, eq. 20 Université René Descartes PARIS FRANCE
# 06/11/08 10:10:34 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-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 1)
/******************************************************************************************
^
The type org.eclipse.m2m.atl.engine.AtlEMFModelHandler cannot be resolved. It is indirectly referenced from required .class files
----------
2. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 34)
import org.eclipse.m2m.atl.engine.AtlEMFModelHandler;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlEMFModelHandler cannot be resolved
----------
3. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 35)
import org.eclipse.m2m.atl.engine.AtlLauncher;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlLauncher cannot be resolved
----------
4. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 36)
import org.eclipse.m2m.atl.engine.AtlModelHandler;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.m2m.atl.engine.AtlModelHandler cannot be resolved
----------
5. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 141)
Map<String, AtlModelHandler> atlModelHandler = new HashMap<String,AtlModelHandler>();
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
6. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 141)
Map<String, AtlModelHandler> atlModelHandler = new HashMap<String,AtlModelHandler>();
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
7. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 145)
atlModelHandler.put(currentModelHandler, AtlModelHandler.getDefault(currentModelHandler));
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved
----------
8. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 176)
AtlLauncher myLauncher = AtlLauncher.getDefault();
^^^^^^^^^^^
AtlLauncher cannot be resolved to a type
----------
9. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 176)
AtlLauncher myLauncher = AtlLauncher.getDefault();
^^^^^^^^^^^
AtlLauncher cannot be resolved
----------
10. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 189)
AtlModelHandler.getHandler(model).disposeOfModel(model);
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved
----------
11. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 202)
private Map<String,ASMModel> getSourceModels(Map<String,String> arg, Map<String,Object> path, Map<String,String> modelHandler, Map<String,AtlModelHandler> atlModelHandler, Collection<ASMModel> toDispose) {
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
12. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 209)
AtlModelHandler amh = (AtlModelHandler)atlModelHandler.get(modelHandler.get(mmName));
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
13. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 209)
AtlModelHandler amh = (AtlModelHandler)atlModelHandler.get(modelHandler.get(mmName));
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
14. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 238)
private Map<String,ASMModel> getTargetModels(Map<String,String> arg, Map<String,Object> path, Map<String,String> modelHandler, Map<String,AtlModelHandler> atlModelHandler, Map<String,ASMModel> input, Collection<ASMModel> toDispose) {
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
15. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 245)
AtlModelHandler amh = (AtlModelHandler)atlModelHandler.get(modelHandler.get(mmName));
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
16. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 245)
AtlModelHandler amh = (AtlModelHandler)atlModelHandler.get(modelHandler.get(mmName));
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
17. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 269)
private ASMModel loadModel(AtlModelHandler amh, String mName, ASMModel metamodel, Object uri, Collection<ASMModel> toDispose) throws CoreException, FileNotFoundException {
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
18. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 274)
ret = ((AtlEMFModelHandler)amh).loadModel(mName, metamodel, "uri:" + ((URI)uri).toString());
^^^^^^^^^^^^^^^^^^
AtlEMFModelHandler cannot be resolved to a type
----------
19. ERROR in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/actions/impl/PIM2PSMAction.java (at line 300)
private ASMModel newModel(AtlModelHandler amh, String mName, ASMModel metamodel, URI uri, Collection<ASMModel> toDispose) {
^^^^^^^^^^^^^^^
AtlModelHandler cannot be resolved to a type
----------
----------
20. WARNING in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/internal/sections/TableObjectManager.java (at line 28)
import org.eclipse.emf.ecore.EcorePackage;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.emf.ecore.EcorePackage is never used
----------
----------
21. WARNING in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/properties/sections/widgets/ReferenceViewerComposite.java (at line 17)
import org.eclipse.emf.common.command.Command;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.eclipse.emf.common.command.Command is never used
----------
----------
22. WARNING in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/resources/uml/Uml2ResourceUtil.java (at line 55)
import fr.obeo.acceleo.ecore.factories.FactoryException;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import fr.obeo.acceleo.ecore.factories.FactoryException is never used
----------
23. WARNING in /home/david/Workspace-OMDF-DEV/fr.jussieu.spim.omdf.core/src/fr/jussieu/spim/omdf/core/resources/uml/Uml2ResourceUtil.java (at line 56)
import fr.obeo.acceleo.gen.template.eval.ENodeCastException;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The import fr.obeo.acceleo.gen.template.eval.ENodeCastException is never used
----------
23 problems (19 errors, 4 warnings)