Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Model-to-Model Transformation » [QVTo] Register blackbox and "Strings" units on a standalone application
[QVTo] Register blackbox and "Strings" units on a standalone application [message #1490938] Fri, 28 November 2014 15:19 Go to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Hello everybody,

I am using "TransformationExecutor" to execute my QVTo specification.

In my specification, I import a blackbox unit and "Strings" and they work well in a standard execution (i.e. using the standard interpreter).

However, these units are not recognized in my Java application and I get the following error message:

"Cannot find imported compilation unit 'Strings'" in the "Strings" case.

I suppose that I have to "register" these units in my code, but I do not know how I can do it.

Thanks,

CarlosG

[Updated on: Wed, 03 December 2014 11:01]

Report message to a moderator

Re: [QVTo] Register blackbox and "Strings" units on a standalone application [message #1503634 is a reply to message #1490938] Mon, 08 December 2014 16:46 Go to previous messageGo to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
I see there is a similar question on: https://www.eclipse.org/forums/index.php/t/458642/, but without answer...

Anyway, I found a solution for registering blackbox units using the QVTo version in developing (org.eclipse.qvto.git mater branch). It is detailed on: https://bugs.eclipse.org/bugs/show_bug.cgi?id=326871

In this version, TransformationExecutor class contains a BlackboxRegistry interface that is used to register a blackbox unit. Here, an example taken from https://bugs.eclipse.org/bugs/show_bug.cgi?id=326871:

TransformationExecutor.BlackboxRegistry.INSTANCE.registerModules(BlackboxLibrary.class);

Where "BlackboxLibrary" is the class that contains the blackbox operators. I attach a complete example.

I would like to know when will this functionality be available in nightly or stable version? Is there any other solution?

Thanks,

CarlosG

[Updated on: Mon, 08 December 2014 16:57]

Report message to a moderator

Re: [QVTo] Register blackbox and "Strings" units on a standalone application [message #1503651 is a reply to message #1503634] Mon, 08 December 2014 17:01 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6078
Registered: July 2009
Senior Member
Hi

I think you'll find it in the M3 build.

PLease use the QVTo newsgroup/forum for QVTo messages.

Regards

Ed Willink



On 08/12/2014 16:46, Carlos Gomez wrote:
> I see there is a similar question on: https://www.eclipse.org/forums/index.php/t/458642/, but without answer...
>
> Anyway, I found a solution for registering blackbox units using the QVTo version in developing (org.eclipse.qvto.git mater branch). It is detailed on: https://bugs.eclipse.org/bugs/show_bug.cgi?id=326871
>
> In this version, TransformationExecutor class contains a BlackboxRegistry interface that is used to register a blackbox unit. Here, an example taken from https://bugs.eclipse.org/bugs/show_bug.cgi?id=326871:
>
> TransformationExecutor.BlackboxRegistry.INSTANCE.registerModules(BlackboxLibrary.class);
>
> Where "BlackboxLibrary" is the class that contains the blackbox operators. I attach a complete example.
>
> I would like to know when will this functionality be available in nightly or stable version? Is there another solution?
>
> Thanks,
>
> CarlosG
>
>
>
Re: [QVTo] Register blackbox and "Strings" units on a standalone application [message #1504418 is a reply to message #1503651] Tue, 09 December 2014 08:31 Go to previous messageGo to next message
Carlos Gomez is currently offline Carlos GomezFriend
Messages: 63
Registered: October 2010
Member
Thanks Ed for your answer!!!

I'll use the newsgroup to post my questions.

Cordially,

CarlosG
icon14.gif  Re: [QVTo] Register blackbox and "Strings" units on a standalone application [message #1708701 is a reply to message #1503634] Sat, 19 September 2015 02:00 Go to previous message
Ulrich Lang is currently offline Ulrich LangFriend
Messages: 14
Registered: August 2015
Junior Member
Thanks for your code, it helped me get this work quickly!
Ulrich
Previous Topic:[SOLVED] Generating random values
Next Topic:[QVTo] Java program->Model->QVTo Transformation->Model->Java program
Goto Forum:
  


Current Time: Fri Oct 19 21:57:35 GMT 2018

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

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

Back to the top