[Acceleo] generating input filename [message #903519] |
Fri, 24 August 2012 02:11  |
Eclipse User |
|
|
|
Hi,
I'd like to generate the source filename in my output. So given an EObject e, I'd like to be able to have something like this in my template:
[e.eResource().getURI()/]
However, getURI is not recognized.
Any ideas?
Greetings,
Wilbert.
|
|
|
Re: [Acceleo] generating input filename [message #903526 is a reply to message #903519] |
Fri, 24 August 2012 02:52  |
Eclipse User |
|
|
|
Hi
Unfortunately EResource is modelled in Ecore.ecore as an EDataType
rather than an EClass so it has no modelled operations, although in some
cases Acceleo does follow the Java class instantiation. You could raise
this as an Acceleo bug/enhancement.
So you need to invoke a Java helper.
Regards
Ed Willink
On 24/08/2012 07:11, Wilbert Alberts wrote:
> Hi,
>
> I'd like to generate the source filename in my output. So given an
> EObject e, I'd like to be able to have something like this in my
> template:
>
> [e.eResource().getURI()/]
>
> However, getURI is not recognized.
>
> Any ideas?
>
> Greetings,
> Wilbert.
>
|
|
|
Powered by
FUDForum. Page generated in 0.97876 seconds