|Re: how to get a list of import packages [message #815066 is a reply to message #814990]
||Wed, 07 March 2012 02:23
| Ed Willink
Registered: July 2009
You first need to compute the set of all references, then convert the
reference targets to a set of all target modules, exclude target modules
that do not need referencing (e.g the current module) and emit that set,
perhaps after alphabeticizing.
Computing the set of references requires knowledge of the meta-model to
identify all potential referencing classes. For instance if using Ecore
you would identify at least ETypedElement.eType, EOperation.eExceptions.
These can be found conveniently by using the type arguments of
eAllContents or filter.
On 07/03/2012 04:47, ritz par wrote:
> I'm new to Acceleo and I'm working on my first template. I am
> trying to generate java source code and need to get a list of packages
> which need to be imported per class file. Any idea on how I could
> accomplish this ? a [for] block with an OCL expression ?
Powered by FUDForum
. Page generated in 0.02131 seconds