Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/546785/#msg_546785
is it possible to get the trace information from an Acceleo generator run (started from Java in an Eclipse plug-in) and somehow store this information? And is it possible to feed this information to the Result View later on?
Max]]>Max Bureck2010-07-14T08:32:25-00:00Re: [Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/547359/#msg_547359
I don't think that it is possible (except if you want to build your own traceability engine, which you can if you link it to the engine with the org.eclipse.acceleo.engine.creator extension point).
But I'm not 100% sure on this, the developer who created this is on holiday, you will have to wait for his return to have more details (in two weeks)
Stéphane Bégaudeau, Obeo]]>Stephane Begaudeau2010-07-16T13:00:46-00:00Re: [Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/549429/#msg_549429
--------------090301070701020407050909
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Max,
What exactly do you mean by "trace information" ? Traceability from an
EObject to its generated text bits?
If yes, you could take a look at the class
org.eclipse.acceleo.internal.ide.ui.views.result.AcceleoResu ltContent
which is the listener in charge of feeding traceability information to
the result view. You might also want to take a look at
org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListe ner which is
the interface of our generation listeners.
Laurent Goubet
Obeo
Max Bureck wrote:
> Hello,
>
> is it possible to get the trace information from an Acceleo generator
> run (started from Java in an Eclipse plug-in) and somehow store this
> information? And is it possible to feed this information to the Result
> View later on?
>
> Max
YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------090301070701020407050909--]]>Laurent Goubet2010-07-26T15:27:39-00:00Re: [Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/549678/#msg_549678
Max Bureck2010-07-27T14:13:24-00:00Re: [Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/549965/#msg_549965
How do I make the engine create traceability information?
I implemented the IAcceleoTextGenerationListener, but the method getTraceabilityInformation on org.eclipse.acceleo.engine.event.AcceleoTextGenerationEvent instances return null. In the Eclipse launcher code I found the following method:
But that snip didn't help.]]>Max Bureck2010-07-28T15:08:51-00:00Re: [Acceleo] store trace information
https://www.eclipse.org/forums/index.php/mv/msg/171895/550179/#msg_550179
--------------060006050504000106000008
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Hi Max,
You shouldn't have to call that code for yourself; except in standalone.
How are you launching your generation? You need to tick the "contribute
traceability information to the result view" checkbox on the launch
config configuration page for now (until we find a more elegant way of
enabling traceability).
Laurent Goubet
Obeo
Max Bureck wrote:
> OK, I have another question:
> How do I make the engine create traceability information? I implemented
> the IAcceleoTextGenerationListener, but the method
> getTraceabilityInformation on
> org.eclipse.acceleo.engine.event.AcceleoTextGenerationEvent instances
> return null. In the Eclipse launcher code I found the following method:
> private void switchTraceability(boolean activate) {
> new
> InstanceScope().getNode(AcceleoEnginePlugin.PLUGIN_ID).putBo olean(
> "org.eclipse.acceleo.traceability.activation",
> activate); //$NON-NLS-1$
> }
> But that snip didn't help.