|
|
|
Re: [ACCELEO] Problem with casting [message #1471039 is a reply to message #1470891] |
Wed, 12 November 2014 21:00 |
Martin Paquin Messages: 21 Registered: July 2014 |
Junior Member |
|
|
I create a new project using the same models but this time I have another exception:
The type of the first parameter of the main template named 'generateElement' is a proxy
A simplify template
[comment encoding = UTF-8 /]
[**
* The documentation of the module generate.
*/]
[module generate('http://www.eclipse.org/emf/2002/Ecore', 'http://www.eclipse.org/MoDisco/GASTM/1.0.Beta2/gastm', 'http://www.freschelegacy.com/x2e/SASTM/1.0/sastm')]
[**
* The documentation of the template generateElement.
* @param anEClass
*/]
[template public generateElement(project : Project)]
[comment @main/]
[file ('log.txt', false, 'UTF-8')]
[project.eAllContents(X2ELibrary)/]
[for (cu : CompilationUnit | project.files)]
[cu.toString()/]
[/for]
[/file]
[/template]
I use the same registration code as in the first program.
Here a copy of the manifest file
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Acceleo X2e2java Module Runtime Plug-in
Bundle-SymbolicName: com.freschelegacy.acceleo.module.x2e2java;singleton:=true
Bundle-Version: 1.0.0.qualifier
Bundle-Activator: com.freschelegacy.acceleo.module.x2e2java.Activator
Bundle-Vendor: Eclipse Modeling Project
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore,
org.eclipse.emf.ecore.xmi,
org.eclipse.ocl,
org.eclipse.ocl.ecore,
org.eclipse.acceleo.common;bundle-version="3.3.0",
org.eclipse.acceleo.model;bundle-version="3.3.0",
org.eclipse.acceleo.profiler;bundle-version="3.3.0",
org.eclipse.acceleo.engine;bundle-version="3.3.0",
org.eclipse.core.resources;bundle-version="3.9.1",
org.eclipse.modisco.omg.gastm;bundle-version="0.12.1",
com.freschelegacy.x2e.omg.sastm.synon;bundle-version="0.1.0",
com.google.guava
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Eclipse-LazyStart: true
Export-Package: com.freschelegacy.acceleo.module.x2e2java.main
My version of Acceleo:
Version: 3.5.1.201409021433
|
|
|
Powered by
FUDForum. Page generated in 0.02018 seconds