[acceleo] another acceleo standalone question [message #1039130] |
Thu, 11 April 2013 19:58 |
Mathias Colpaert Messages: 13 Registered: November 2012 |
Junior Member |
|
|
Hi,
It may seem like I am asking a question already asked before, but the solutions indicated in the other forum posts don't work for me.
I am trying to run an Acceleo project in a standalone.
public void registerPackages(ResourceSet resourceSet) {
super.registerPackages(resourceSet);
if(!isInWorkspace(PSMAndroid.PSMAndroidPackage.class)){
System.out.println("uri: "+PSMAndroid.PSMAndroidPackage.eNS_URI);
resourceSet.getPackageRegistry().put(PSMAndroid.PSMAndroidPackage.eNS_URI, PSMAndroid.PSMAndroidPackage.eINSTANCE);
}
}
And also:
public void registerResourceFactories(ResourceSet resourceSet) {
super.registerResourceFactories(resourceSet);
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("psmandroid",new XMIResourceFactoryImpl());
}
The module looks like this:
[module componentModule('org.colpaert.mathias.PSMAndroid')]
I am getting following error:
Quote:org.eclipse.acceleo.engine.AcceleoEvaluationException: The type of the first parameter of the main template named 'generateModel' is a proxy.
I looked at other posts, but none of that works for me. (I would post the links, but the forum is preventing me because I dont have enough posts :/ )
The generator worked when launched as "acceleo application", without the lines of code above. When I add the lines, running as java application I get the error above. But when I try to run as "acceleo application" again, I get following error:
So that does not work anymore.
What should I do?
extra info: I added the ecore model (project with model & genmodel etc) as a project reference in the build path properties of my acceleo generation project.
-
Attachment: error.PNG
(Size: 12.23KB, Downloaded 565 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03025 seconds