[Acceleo] Class 'System' is not found or is abstract [message #895088] |
Wed, 11 July 2012 12:31  |
Eclipse User |
|
|
|
Hi everyone,
We are trying to generate Lydia code from an xmi file. But we get the error "Class 'System' is not found or is abstract".
SO, we are using our own ecore metamodel. All packages are registered in the generated java file (I read it is not possible to register the metamodel alone when it is made of different packages, but all packages have to be individualy registered).
We use Indigo version.
The input model is an .xmi file. Here is the code we use for registering the factory resource:
resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xmi", new XMIResourceFactoryImpl());
The heading of the input model is:
<?xml version="1.0" encoding="ASCII"?>
<STRUCT:[b]System[/b] xmi:version="2.0"
xmlns:STRUCT="http: //zuse.ucc.ie/itobo/structure"
xmlns:DX="http: //zuse.ucc.ie/itobo/diagnosis"
xmlns:PL="http: //zuse.ucc.ie/itobo/propositionallogic"
name="main">
All this packages are registered in the generated java file.
resourceSet.getPackageRegistry().put("http: //zuse.ucc.ie/itobo/structure", org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
However registering everything, the error "class "System" is not found or is abstract" still comes up.
Also, sometimes the error "emtl file is not found" appears (may be significant(?))
Any help will be greatly appreciated.
Cheers
[Updated on: Thu, 12 July 2012 10:35] by Moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04380 seconds