|
|
|
|
|
|
|
Re: [acceleo] Can we know the Generated List file of mainFile [message #543744 is a reply to message #543737] |
Wed, 30 June 2010 09:02  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------000501030501080803070507
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
The intended way of doing it is to use the "getGenerationListeners"
method, not the "addListener" one.
As mentionned in the "getGenerationListeners" code :
// TODO if you need to listen to generation event, add listeners to the
list here
which means you simply have to change it so that it looks like :
public List<IAcceleoTextGenerationListener> getGenerationListeners() {
List<IAcceleoTextGenerationListener> listeners =
super.getGenerationListeners();
listeners.add(new MyGenerationListener());
return listeners;
}
poltrox wrote:
> How can I add one class like a listener of my generator if I don't used
> The "getGenerationListeners()" method ?
>
> the function addListener is deprecated in abstract class and i don't
> find another solution as modify each generator
--------------000501030501080803070507
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------000501030501080803070507--
|
|
|
Powered by
FUDForum. Page generated in 0.30127 seconds