Hello,
I've deployed an acceleo bundle, like in the tutorial, but still have the
following error :
"The execution of a script failed: Cannot find operation (getABSTRACT()) for
the type (Experience)"
See below for details of (BUNDLE, plugin.xml and GENDOC template)
- What do I miss ?
- Do you have a sample java code that lists the content of a deployed bundle
(to test, in the eclipse application where this bundle is deployed, what,
exactly, can be seen inside the bundle) ?
- That I've tested the query in an acceleo template, and it works
Thank you for your help
Regards
THE BUNDLE :
[module cv_auto('http://my.cv_auto/cv/1.2.0')/]
[query public getABSTRACT(a : Experience) : Sequence(TextualItem) =
self.subElements->select(e | e.oclIsKindOf(TextualItem))
.oclAsType(TextualItem)
->select(ti | ti.kind = SpecialItemKind::ABSTRACT)
/]
Plugin.xml extract :
<extension
point="org.topcased.gendoc2.script.acceleo.services">
<service
emtl="bin/my/cv_auto/m2t/gendoc/bundle/files/cv_auto.emtl"
importedByDefault="true"
name="cv_auto">
</service>
</extension>
GENDOC TEMPLATE EXTRACT :
<context model='${model}' searchMetamodels='true'
importedBundles='cv_auto'/><drop/>
<gendoc><table><drop/>
[for (e : Experience | self.categories->select(oclIsTypeOf(Experience)))]
[if self.getABSTRACT()->size() <> 0]
Cédric GAVA
Friend of eclipse
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users