Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] How to generate a trace file
[QVTO] How to generate a trace file [message #480618] Mon, 17 August 2009 22:55 Go to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi,

I am calling QVT transformations from Java. Can someone point me to the
right API for configuring the generation of a trace file?

Also, are the ExecutionContext configuration properties documented
anywhere?

Thanks in advance.

Derek
Re: [QVTO] How to generate a trace file [message #480684 is a reply to message #480618] Tue, 18 August 2009 07:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: formatzeh.gmx.de

I'm interested in that, too.
Re: [QVTO] How to generate a trace file [message #480840 is a reply to message #480618] Tue, 18 August 2009 16:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Derek,

> I am calling QVT transformations from Java. Can someone point me to the
> right API for configuring the generation of a trace file?

Not possible for now, it will be after resolution of
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.
I can fix it next week.

> Also, are the ExecutionContext configuration properties documented
> anywhere?

Not sure I understand any specific problem you have here.
Basically, you can setup a value for a property identified by its name.
Only primitive types for configuration properties are supported.

See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava for a usage
example.

If you find anything unclear or wrong, let me know so we can fix it.

Regards,
/Radek
Re: [QVTO] How to generate a trace file [message #480935 is a reply to message #480840] Wed, 19 August 2009 01:39 Go to previous messageGo to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi Radek,

Regarding the configuration property question, I have no specific problem. I
just wanted to understand how they are used and what is available. I was
thinking that perhaps that is now you would configure trace file generation.

In the InvokeInJava example I did not understand what
context.setConfigProperty("keepModeling", true);

is for.


Derek

"radek dvorak" <dvorak.radek@gmail.com> wrote in message
news:op.uyu767tg12y5f2@kliste.local...
> Hi Derek,
>
>> I am calling QVT transformations from Java. Can someone point me to the
>> right API for configuring the generation of a trace file?
>
> Not possible for now, it will be after resolution of
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.
> I can fix it next week.
>
>> Also, are the ExecutionContext configuration properties documented
>> anywhere?
>
> Not sure I understand any specific problem you have here.
> Basically, you can setup a value for a property identified by its name.
> Only primitive types for configuration properties are supported.
>
> See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava for a usage
> example.
>
> If you find anything unclear or wrong, let me know so we can fix it.
>
> Regards,
> /Radek
Re: [QVTO] How to generate a trace file [message #480957 is a reply to message #480935] Wed, 19 August 2009 07:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Derek,

All configuration properties are declared in your transformation source
file.
The runtime execution takes care of values to properties binding,
in Java invocation via the ExecutionContext class.
There are no predefined configuration properties, these are only user
defined.

I think It should be clear from the OMG spec, but I can see we should not
rely too much
on the precondition that users have read it all ;).
I will try to complement the javadoc somehow.

/Radek



On Wed, 19 Aug 2009 03:39:04 +0200, Derek Palma <derek.palma@gmail.com>
wrote:

> Hi Radek,
>
> Regarding the configuration property question, I have no specific
> problem. I just wanted to understand how they are used and what is
> available. I was thinking that perhaps that is now you would configure
> trace file generation.
>
> In the InvokeInJava example I did not understand what
> context.setConfigProperty("keepModeling", true);
>
> is for.
>
>
> Derek
>
> "radek dvorak" <dvorak.radek@gmail.com> wrote in message
> news:op.uyu767tg12y5f2@kliste.local...
>> Hi Derek,
>>
>>> I am calling QVT transformations from Java. Can someone point me to
>>> the right API for configuring the generation of a trace file?
>>
>> Not possible for now, it will be after resolution of
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.
>> I can fix it next week.
>>
>>> Also, are the ExecutionContext configuration properties documented
>>> anywhere?
>>
>> Not sure I understand any specific problem you have here.
>> Basically, you can setup a value for a property identified by its name.
>> Only primitive types for configuration properties are supported.
>>
>> See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava for a usage
>> example.
>>
>> If you find anything unclear or wrong, let me know so we can fix it.
>>
>> Regards,
>> /Radek
>
Re: [QVTO] How to generate a trace file [message #481059 is a reply to message #480957] Wed, 19 August 2009 12:59 Go to previous messageGo to next message
Derek Palma is currently offline Derek PalmaFriend
Messages: 141
Registered: July 2009
Senior Member
Hi Radek,

I have read the Spec but can't say I remember it all... But I will search
for "configuration properties" in the spec.

Thanks,
Derek

"radek dvorak" <dvorak.radek@gmail.com> wrote in message
news:op.uywf4spw12y5f2@kliste.local...
> Hi Derek,
>
> All configuration properties are declared in your transformation source
> file.
> The runtime execution takes care of values to properties binding,
> in Java invocation via the ExecutionContext class.
> There are no predefined configuration properties, these are only user
> defined.
>
> I think It should be clear from the OMG spec, but I can see we should not
> rely too much
> on the precondition that users have read it all ;).
> I will try to complement the javadoc somehow.
>
> /Radek
>
>
>
> On Wed, 19 Aug 2009 03:39:04 +0200, Derek Palma <derek.palma@gmail.com>
> wrote:
>
>> Hi Radek,
>>
>> Regarding the configuration property question, I have no specific
>> problem. I just wanted to understand how they are used and what is
>> available. I was thinking that perhaps that is now you would configure
>> trace file generation.
>>
>> In the InvokeInJava example I did not understand what
>> context.setConfigProperty("keepModeling", true);
>>
>> is for.
>>
>>
>> Derek
>>
>> "radek dvorak" <dvorak.radek@gmail.com> wrote in message
>> news:op.uyu767tg12y5f2@kliste.local...
>>> Hi Derek,
>>>
>>>> I am calling QVT transformations from Java. Can someone point me to
>>>> the right API for configuring the generation of a trace file?
>>>
>>> Not possible for now, it will be after resolution of
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.
>>> I can fix it next week.
>>>
>>>> Also, are the ExecutionContext configuration properties documented
>>>> anywhere?
>>>
>>> Not sure I understand any specific problem you have here.
>>> Basically, you can setup a value for a property identified by its name.
>>> Only primitive types for configuration properties are supported.
>>>
>>> See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava for a usage
>>> example.
>>>
>>> If you find anything unclear or wrong, let me know so we can fix it.
>>>
>>> Regards,
>>> /Radek
>>
>
Re: [QVTO] How to generate a trace file [message #481157 is a reply to message #481059] Wed, 19 August 2009 20:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dvorak.radek.gmail.com

Hi Derek,

> I have read the Spec but can't say I remember it all... But I will
> search for "configuration properties" in the spec.

No doubts, it's pretty a multiphase reading ;). Just wanted to put things
right,
I would like to encourage users to ask whatever in this newsgroup.
At least it should help to reveal unclear, unexplained areas that
a majority of people might face. /* if not already answered in previous
posts ;) */

The 8.2.1.1 section in the spec might give an understanding of this topic.

Regards,
/Radek


> Derek
>
> "radek dvorak" <dvorak.radek@gmail.com> wrote in message
> news:op.uywf4spw12y5f2@kliste.local...
>> Hi Derek,
>>
>> All configuration properties are declared in your transformation source
>> file.
>> The runtime execution takes care of values to properties binding,
>> in Java invocation via the ExecutionContext class.
>> There are no predefined configuration properties, these are only user
>> defined.
>>
>> I think It should be clear from the OMG spec, but I can see we should
>> not rely too much
>> on the precondition that users have read it all ;).
>> I will try to complement the javadoc somehow.
>>
>> /Radek
>>
>>
>>
>> On Wed, 19 Aug 2009 03:39:04 +0200, Derek Palma <derek.palma@gmail.com>
>> wrote:
>>
>>> Hi Radek,
>>>
>>> Regarding the configuration property question, I have no specific
>>> problem. I just wanted to understand how they are used and what is
>>> available. I was thinking that perhaps that is now you would configure
>>> trace file generation.
>>>
>>> In the InvokeInJava example I did not understand what
>>> context.setConfigProperty("keepModeling", true);
>>>
>>> is for.
>>>
>>>
>>> Derek
>>>
>>> "radek dvorak" <dvorak.radek@gmail.com> wrote in message
>>> news:op.uyu767tg12y5f2@kliste.local...
>>>> Hi Derek,
>>>>
>>>>> I am calling QVT transformations from Java. Can someone point me to
>>>>> the right API for configuring the generation of a trace file?
>>>>
>>>> Not possible for now, it will be after resolution of
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645.
>>>> I can fix it next week.
>>>>
>>>>> Also, are the ExecutionContext configuration properties documented
>>>>> anywhere?
>>>>
>>>> Not sure I understand any specific problem you have here.
>>>> Basically, you can setup a value for a property identified by its
>>>> name.
>>>> Only primitive types for configuration properties are supported.
>>>>
>>>> See http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava for a usage
>>>> example.
>>>>
>>>> If you find anything unclear or wrong, let me know so we can fix it.
>>>>
>>>> Regards,
>>>> /Radek
>>>
>>
>
Re: [QVTO] How to generate a trace file [message #549642 is a reply to message #481157] Tue, 27 July 2010 12:54 Go to previous messageGo to next message
mm  is currently offline mm Friend
Messages: 3
Registered: July 2010
Junior Member
Hi Derek,

It seems that the generation of the trace file has been fixed but I can't find how can I actually generate it?

could you please send me the two lines of code that enable to generate the trace file.


Thanks

MM
Re: [QVTO] How to generate a trace file [message #549655 is a reply to message #549642] Tue, 27 July 2010 13:33 Go to previous message
mm  is currently offline mm Friend
Messages: 3
Registered: July 2010
Junior Member
Has the bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282645. been resolved because I can't find anywhere how to generate the trace file from java.

Thx

Previous Topic:[ATL] Put all lanes under one lane set
Next Topic:[QVTO] QvtRuntimeException when running by program
Goto Forum:
  


Current Time: Fri Apr 19 05:36:31 GMT 2024

Powered by FUDForum. Page generated in 0.02446 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top