[QVTO] Programmatically launch an QVTO transformation [message #94546] |
Wed, 05 November 2008 09:06  |
Eclipse User |
|
|
|
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
|
|
|
|
|
Re: [QVTO] Programmatically launch an QVTO transformation (reviewed) [message #94604 is a reply to message #94589] |
Wed, 05 November 2008 11:23  |
Eclipse User |
|
|
|
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
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.02274 seconds