Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] Programmatically launch an QVTO transformation
[QVTO] Programmatically launch an QVTO transformation [message #94546] Wed, 05 November 2008 14:06 Go to next message
Dawid Kostrzycki is currently offline Dawid KostrzyckiFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I had a look at the simpleUml2rmdb example and asked myself whether it is
possible to run a qvto transformation programmatically in headless mode
without having to run any ui stuff.
Hence I tried the QvtLaunchConfigurationDelegateBase.doLaunch() method which
calls hierarchally "QvtOperationalEnv.registerMetamodel(..)". There
" ResourceSetProviderRegistry.getResourceSetResourceSetProvide rPair(cFile) "
is called which tries call PlatformUI.getWorkbench().

thanks in advance
dawid
[QVTO] Programmatically launch an QVTO transformation (reviewed) [message #94574 is a reply to message #94546] Wed, 05 November 2008 15:34 Go to previous messageGo to next message
Dawid Kostrzycki is currently offline Dawid KostrzyckiFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,
I had a look at the simpleUml2rmdb example and asked myself whether it is
possible to run a qvto transformation programmatically in headless mode
without having to run any ui stuff.
Hence I tried the QvtLaunchConfigurationDelegateBase.doLaunch() method which
calls hierarchally "QvtOperationalEnv.registerMetamodel(..)". There
" ResourceSetProviderRegistry.getResourceSetResourceSetProvide rPair(cFile) "
is called which tries to call PlatformUI.getWorkbench() and throws a
IllegalStateException.

Caused by: java.lang.IllegalStateException: Workbench has not been created
yet.
at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
at
org.eclipse.m2m.internal.qvt.oml.common.resourcesetprovider. ResourceSetProviderRegistry. <clinit>(ResourceSetProviderRegistry.java:65)
... 36 more

thanks in advance
dawid
Re: [QVTO] Programmatically launch an QVTO transformation (reviewed) [message #94589 is a reply to message #94574] Wed, 05 November 2008 16:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Alexander.Igdalov.borland.com

Hi Dawid,

Unfortunately, QVTO transformations in headless mode are not supported
yet. However, there are plans to do that sooner or later.

Regarding the programmatic launch, there is an API for automatic
transformation execution. See Sergey Boyko's reply to a similiar
question "Re: [QVT] Call QVT from Java code/command line" (6/4/2008).

Best,
Alex.

Dawid wrote:
> Hi,
> I had a look at the simpleUml2rmdb example and asked myself whether it is
> possible to run a qvto transformation programmatically in headless mode
> without having to run any ui stuff.
> Hence I tried the QvtLaunchConfigurationDelegateBase.doLaunch() method
> which
> calls hierarchally "QvtOperationalEnv.registerMetamodel(..)". There
> " ResourceSetProviderRegistry.getResourceSetResourceSetProvide rPair(cFile) "
> is called which tries to call PlatformUI.getWorkbench() and throws a
> IllegalStateException.
>
> Caused by: java.lang.IllegalStateException: Workbench has not been
> created yet.
> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
> at
> org.eclipse.m2m.internal.qvt.oml.common.resourcesetprovider. ResourceSetProviderRegistry. <clinit>(ResourceSetProviderRegistry.java:65)
>
> ... 36 more
>
> thanks in advance
> dawid
>
>
Re: [QVTO] Programmatically launch an QVTO transformation (reviewed) [message #94604 is a reply to message #94589] Wed, 05 November 2008 16:23 Go to previous message
Richard Gronback is currently offline Richard GronbackFriend
Messages: 605
Registered: July 2009
Senior Member
There are Ant tasks, if that would be helpful.

- Rich


On 11/5/08 11:08 AM, in article gesgen$c4f$1@build.eclipse.org, "Alexander
Igdalov" <Alexander.Igdalov@borland.com> wrote:

> Hi Dawid,
>
> Unfortunately, QVTO transformations in headless mode are not supported
> yet. However, there are plans to do that sooner or later.
>
> Regarding the programmatic launch, there is an API for automatic
> transformation execution. See Sergey Boyko's reply to a similiar
> question "Re: [QVT] Call QVT from Java code/command line" (6/4/2008).
>
> Best,
> Alex.
>
> Dawid wrote:
>> Hi,
>> I had a look at the simpleUml2rmdb example and asked myself whether it is
>> possible to run a qvto transformation programmatically in headless mode
>> without having to run any ui stuff.
>> Hence I tried the QvtLaunchConfigurationDelegateBase.doLaunch() method
>> which
>> calls hierarchally "QvtOperationalEnv.registerMetamodel(..)". There
>> " ResourceSetProviderRegistry.getResourceSetResourceSetProvide rPair(cFile) "
>> is called which tries to call PlatformUI.getWorkbench() and throws a
>> IllegalStateException.
>>
>> Caused by: java.lang.IllegalStateException: Workbench has not been
>> created yet.
>> at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:92)
>> at
>> org.eclipse.m2m.internal.qvt.oml.common.resourcesetprovider. ResourceSetProvid
>> erRegistry.<clinit>(ResourceSetProviderRegistry.java:65)
>>
>> ... 36 more
>>
>> thanks in advance
>> dawid
>>
>>
Previous Topic:[ATL] Where can I find a UML metamodel in Ecore?
Next Topic:[QVTO] SimpleUML to RDB Example
Goto Forum:
  


Current Time: Thu Apr 25 09:57:34 GMT 2024

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

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

Back to the top