Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Writing to console from blackbox
[QVTo] Writing to console from blackbox [message #522547] Tue, 23 March 2010 01:14 Go to next message
Phaz is currently offline PhazFriend
Messages: 3
Registered: March 2010
Junior Member
Hello,

is it possible to write to the Eclipse console from a black box library that I'm importing in qvt? System.out.writeln and the usual ConsolePlugin method don't work.

Re: [QVTo] Writing to console from blackbox [message #522609 is a reply to message #522547] Tue, 23 March 2010 11:04 Go to previous messageGo to next message
PBarendrecht is currently offline PBarendrechtFriend
Messages: 36
Registered: November 2009
Location: Eindhoven, Netherlands
Member
Hi,
I'm not sure whether you can do this directly, but you could write a query that prints something in the terminal (by using a string Parameter). I'll investigate this further as I would like to know how to do this myself.
Re: [QVTo] Writing to console from blackbox [message #522637 is a reply to message #522609] Tue, 23 March 2010 13:08 Go to previous messageGo to next message
Phaz is currently offline PhazFriend
Messages: 3
Registered: March 2010
Junior Member
Thank you for your response.

I'm not sure what you mean, though. Obviously I can write a query in qvt that uses log to print to the console, but I wouldn't be able to call that query from the black box, would I?
Re: [QVTo] Writing to console from blackbox [message #524955 is a reply to message #522547] Sun, 04 April 2010 18:09 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Phaz ,

Unfortunately there's no access to console of Eclipse instance being
used from the QVTo black-box library.

Would you mind to raise a bugzilla?
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=M2M&
component=QVT_OML-Engine

Possible we can add addition annotation like
@Operation(withLog=true)
so addition parameter of org.eclipse.m2m.qvt.oml.util.Log class would be
passed to library method.

Or may be whole QVTo evaluation context could be more useful like
@Operation(withQvtoContext=true)
so addition parameter of
org.eclipse.m2m.internal.qvt.oml.library.IContext class would be passed
to library method.


Regards,
Sergey

Phaz wrote:
> Hello,
>
> is it possible to write to the Eclipse console from a black box library
> that I'm importing in qvt? System.out.writeln and the usual
> ConsolePlugin method don't work.
>
>
Re: [QVTo] Writing to console from blackbox [message #524961 is a reply to message #524955] Sun, 04 April 2010 20:50 Go to previous message
Phaz is currently offline PhazFriend
Messages: 3
Registered: March 2010
Junior Member
Thank you Sergey, I've created a bug report at https://bugs.eclipse.org/bugs/show_bug.cgi?id=308049
Previous Topic:[QVTo] Help for API documentation
Next Topic:[Announce] MoDELS 2010 Call for Papers
Goto Forum:
  


Current Time: Thu Apr 25 19:45:38 GMT 2024

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

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

Back to the top