Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Standalone execution
[QVTo] Standalone execution [message #807941] Mon, 27 February 2012 07:47 Go to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

A few earlier threads suggest some problems but ultimately success when
running a QVTo transformation standalone, but also some ambiguity about
quite what standalone means.

Does anyone know how to run a QVTo transformation when the Eclipse
platform is not running; i.e. no IFiles and no plugin registries?

It appears that DeployedQvtModule supports execution from a plugin and
that WorkspaceQvtModule supports execution from an IFile, but where is
the support for execution from a standalone Resource?

Regards

Ed Willink
Re: [QVTo] Standalone execution [message #809831 is a reply to message #807941] Wed, 29 February 2012 10:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi All

It's pretty easy; just use org.eclipse.m2m.qvt.oml.TransformationExecutor.

Only minor trick is to provide positionally aligned ModelExtents with a
probably empty output one, whose contents need to be copied to an output
resource and saved on completion.

An MWE2 integration may soon be found at:
/org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/utilities/QvtoWorkflowComponent.java

Regards

Ed Willink

On 27/02/2012 07:47, Ed Willink wrote:
> Hi
>
> A few earlier threads suggest some problems but ultimately success
> when running a QVTo transformation standalone, but also some ambiguity
> about quite what standalone means.
>
> Does anyone know how to run a QVTo transformation when the Eclipse
> platform is not running; i.e. no IFiles and no plugin registries?
>
> It appears that DeployedQvtModule supports execution from a plugin and
> that WorkspaceQvtModule supports execution from an IFile, but where is
> the support for execution from a standalone Resource?
>
> Regards
>
> Ed Willink
Re: [QVTo] Standalone execution [message #817207 is a reply to message #809831] Fri, 09 March 2012 19:48 Go to previous messageGo to next message
Alan McMorran is currently offline Alan McMorranFriend
Messages: 55
Registered: July 2009
Member
Ed,

Have you got QVTO running outside of OSGi (i.e. in a Java static void
main?) or is it just outside of Eclipse but within Equinox? I ran into
headaches getting things like blackbox units and transformation units
to compile when I tried this a while ago as a plain old java runtime,
but I've been successfully running it with a light-weight OSGi kernel.

Alan

On 2012-02-29 10:09:33 +0000, Ed Willink said:

> Hi All
>
> It's pretty easy; just use org.eclipse.m2m.qvt.oml.TransformationExecutor.
>
> Only minor trick is to provide positionally aligned ModelExtents with a
> probably empty output one, whose contents need to be copied to an
> output resource and saved on completion.
>
> An MWE2 integration may soon be found at:
> /org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/utilities/QvtoWorkflowComponent.java


>
> Regards
>
> Ed Willink
>
> On 27/02/2012 07:47, Ed Willink wrote:
>> Hi
>>
>> A few earlier threads suggest some problems but ultimately success when
>> running a QVTo transformation standalone, but also some ambiguity about
>> quite what standalone means.
>>
>> Does anyone know how to run a QVTo transformation when the Eclipse
>> platform is not running; i.e. no IFiles and no plugin registries?
>>
>> It appears that DeployedQvtModule supports execution from a plugin and
>> that WorkspaceQvtModule supports execution from an IFile, but where is
>> the support for execution from a standalone Resource?
>>
>> Regards
>>
>> Ed Willink
Re: [QVTo] Standalone execution [message #817218 is a reply to message #817207] Fri, 09 March 2012 20:05 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Alan

I'm running within the MWE2 environment for which
EMFPlugin.IS_ECLIPSE_RUNNING is false.

I have my own ProjectMapSetup to fully populate platform:/resource/...
and platform:/plugin/... from the class path. See
https://bugs.eclipse.org/bugs/show_bug.cgi?id=360926#c7 for my analysis
of what's needed to make standalone work.

Regards

Ed Willink

On 09/03/2012 19:48, Alan McMorran wrote:
> Ed,
>
> Have you got QVTO running outside of OSGi (i.e. in a Java static void
> main?) or is it just outside of Eclipse but within Equinox? I ran
> into headaches getting things like blackbox units and transformation
> units to compile when I tried this a while ago as a plain old java
> runtime, but I've been successfully running it with a light-weight
> OSGi kernel.
>
> Alan
>
> On 2012-02-29 10:09:33 +0000, Ed Willink said:
>
>> Hi All
>>
>> It's pretty easy; just use
>> org.eclipse.m2m.qvt.oml.TransformationExecutor.
>>
>> Only minor trick is to provide positionally aligned ModelExtents with
>> a probably empty output one, whose contents need to be copied to an
>> output resource and saved on completion.
>>
>> An MWE2 integration may soon be found at:
>> /org.eclipse.ocl.examples.build/src/org/eclipse/ocl/examples/build/utilities/QvtoWorkflowComponent.java
>>
>
>
>>
>> Regards
>>
>> Ed Willink
>>
>> On 27/02/2012 07:47, Ed Willink wrote:
>>> Hi
>>>
>>> A few earlier threads suggest some problems but ultimately success
>>> when running a QVTo transformation standalone, but also some
>>> ambiguity about quite what standalone means.
>>>
>>> Does anyone know how to run a QVTo transformation when the Eclipse
>>> platform is not running; i.e. no IFiles and no plugin registries?
>>>
>>> It appears that DeployedQvtModule supports execution from a plugin
>>> and that WorkspaceQvtModule supports execution from an IFile, but
>>> where is the support for execution from a standalone Resource?
>>>
>>> Regards
>>>
>>> Ed Willink
>
>
Previous Topic:Papyrus MDT DI2ToDI
Next Topic:Metamodel in workspace in QVTO Problem
Goto Forum:
  


Current Time: Sat Apr 20 05:46:00 GMT 2024

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

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

Back to the top