[QVTOM] Borland's contribution: Exposing the QVT program to model (XMI) [message #61981] |
Wed, 19 September 2007 04:32  |
Eclipse User |
|
|
|
Hello all,
While studying the source code of org.eclipse.m2m.qvt.oml, I noticed
that it does not expose an XMI representation of the QVT code merely an
object representation (AST).
It would be interesting to get the XMI representation of the parsed QVT
code. Is it possible to change the implementation to get an XMI
representation? What kind of changes would it require in the source code?
Best regards,
Alfons Laarman
|
|
|
Re: [QVTOM] Borland's contribution: Exposing the QVT program to model (XMI) [message #62076 is a reply to message #61981] |
Thu, 20 September 2007 05:16  |
Eclipse User |
|
|
|
Hi Alfons,
Right, access to XMI representation is still not available 'out of the =
box'.
You can access the AST model by loading a *.qvto file as a EMF resource
as there is a special QVT resource factory registered for this file =
extension.
It loads a resource containing the QVT concrete textual syntax.
Once you get access to the model you can use XMI serialization for savin=
g.
Still, when doing so, you would face some issues with dangling reference=
s =
to elements
from environments like dynamic types (collections, tuples) or to other =
=
imported modules.
This is to be solved by =
https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D204085.
Note, that AST created by the parser is not exactly matching the AST mod=
el =
from the QVT spec,
we have to provide an export functionality for this.
Regards,
/Radek
On Wed, 19 Sep 2007 10:32:41 +0200, Alfons Laarman =
<alfons.laarman@obeo.fr> wrote:
> Hello all,
>
> While studying the source code of org.eclipse.m2m.qvt.oml, I noticed =
> that it does not expose an XMI representation of the QVT code merely a=
n =
> object representation (AST).
> It would be interesting to get the XMI representation of the parsed QV=
T =
> code. Is it possible to change the implementation to get an XMI =
> representation? What kind of changes would it require in the source co=
de?
>
>
> Best regards,
>
> Alfons Laarman
-- =
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
|
|
|
Powered by
FUDForum. Page generated in 0.03214 seconds