Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Generate QVTo-file
Generate QVTo-file [message #1717616] Tue, 15 December 2015 09:54 Go to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 167
Registered: August 2013
Senior Member
Hi

Is it possible to generate a QVTo-transformation by means of another QVTo-transformation?

I wrote the following transformation:

modeltype IMP_OCL uses 'http://www.eclipse.org/qvt/1.0/ImperativeOCL';
modeltype OCL_ECORE uses 'http://www.eclipse.org/ocl/1.1.0/Ecore';
modeltype QVTO_EXPR uses 'http://www.eclipse.org/qvt/1.0.0/Operational/Expressions';

transformation GenerateHelloWorld(out o : QVTO_EXPR);

main() {
    object OperationalTransformation {
    	eOperations := object EntryOperation {
    		name := 'main';
    	};
    };
}


When I save output model into xmi-file, it works fine. But when I try to save it into qvto-file, the latter one isn't created at all.

Also when I save qvto-file as xmi-file, it works. But I can't save xmi-file as qvto-file. Is it possible?
Re: Generate QVTo-file [message #1717623 is a reply to message #1717616] Tue, 15 December 2015 10:21 Go to previous messageGo to next message
Denis Nikiforov is currently offline Denis NikiforovFriend
Messages: 167
Registered: August 2013
Senior Member
It seems that qvto-generation isn't supported:
https://www.eclipse.org/forums/index.php/t/201738/
https://bugs.eclipse.org/bugs/show_bug.cgi?id=377320

It would be great to have such a possibility...
Re: Generate QVTo-file [message #1717650 is a reply to message #1717623] Tue, 15 December 2015 14:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5396
Registered: July 2009
Senior Member
Hi

*.qvto is a text file extension.

Some contributions have used *.qvtox as the XMI equivalent, but AFAIA
this is not yet supported by the code.

The forthcoming Pivot-based code uses *.qvtcas/qvtoas/qvtras for
QVTc/QVTo/QVTr AS (XMI).

Regards

Ed Willink

On 15/12/2015 10:21, Denis Nikiforov wrote:
> It seems that qvto-generation isn't supported:
> https://www.eclipse.org/forums/index.php/t/201738/
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=377320
>
> It would be great to have such a possibility...
Re: Generate QVTo-file [message #1725397 is a reply to message #1717623] Thu, 03 March 2016 09:25 Go to previous messageGo to next message
Uwe Ritzmann is currently offline Uwe RitzmannFriend
Messages: 26
Registered: July 2009
Junior Member
Denis,

I am nearing completion of implementing the missing save() Funktion.
Would you be interested in testing it?

Best Regards,

Uwe
Re: Generate QVTo-file [message #1725556 is a reply to message #1725397] Fri, 04 March 2016 11:07 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Uwe,

It will be interesting to test and possibly integrate such functionality.

Can you please share link or post source to dev group (qvto-dev@eclipse.org).

TIA,
Sergey Boyko.
Re: Generate QVTo-file [message #1725563 is a reply to message #1725556] Fri, 04 March 2016 12:55 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 5396
Registered: July 2009
Senior Member
Hi

It will save time in due course if you attach, preferably a GIT patch,
to a Bugzilla and sign the CLA to indicate your formal willingness tyo
contribute.

Regards

Ed Willink


On 04/03/2016 11:07, Sergey Boyko wrote:
> Hi Uwe,
>
> It will be interesting to test and possibly integrate such functionality.
>
> Can you please share link or post source to dev group
> (mailto:qvto-dev@xxxxxxxx).
>
> TIA,
> Sergey Boyko.
>
Patch available Re: Generate QVTo-file [message #1728568 is a reply to message #1725556] Tue, 05 April 2016 13:22 Go to previous message
Uwe Ritzmann is currently offline Uwe RitzmannFriend
Messages: 26
Registered: July 2009
Junior Member
Hi,

My proposed patch to bug 377320 is provided as attachment to the bugzilla bug.

Best Regards

Uwe
Previous Topic:Cannot find imported compilation unit
Next Topic:Qvt Simple Question
Goto Forum:
  


Current Time: Tue Sep 26 20:13:42 GMT 2017

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

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