Home » Archived » M2M (model-to-model transformation) » [QVTO] Calling transformation programmatically
[QVTO] Calling transformation programmatically [message #101663] |
Thu, 12 March 2009 15:53 |
Patrick Konemann Messages: 116 Registered: July 2009 |
Senior Member |
|
|
Hi all,
I encountered a strange bug, I think. My setting:
I created an Eclipse plugin providing a qvto file and containing an action which starts a transformation:
public void run() {
URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/qvto/transformation.qvto", true);
QvtoTransformationHelper helper = new QvtoTransformationHelper(transformationSpecification);
TransfExecutionResult result = transformationHelper.executeTransformation(getInModels(), Collections.<String, Object> emptyMap(), null);
saveOutModels(result);
}
The strange thing is that it totally works if I start a runtime workbench and perform the action _for the first time_. The out models are saved as expected.
But if I perform the action again, it does not work any more! The following exception raises. If I restart the runtime workbench, however, it works again for one time!
org.eclipse.core.runtime.CoreException: Failed to parse transformation 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
at org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
at myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
Any ideas??
By the way, the validator below does not work at all and claims that the resource does not exist, because it only checks the workspace for the given uri.
QvtoTransformationValidator.validateQvtoScript(uri, null, null)
Cheers
Patrick
|
|
|
Re: [QVTO] Calling transformation programmatically [message #101676 is a reply to message #101663] |
Thu, 12 March 2009 15:57 |
Patrick Konemann Messages: 116 Registered: July 2009 |
Senior Member |
|
|
Oups, variables were named wrong:
public void run() {
URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID + "/qvto/transformation.qvto", true);
QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
TransfExecutionResult result = helper.executeTransformation(getInModels(), Collections.<String, Object> emptyMap(), null);
saveOutModels(result);
}
On 12-03-2009 16:53, Patrick Könemann wrote:
> Hi all,
>
> I encountered a strange bug, I think. My setting:
>
> I created an Eclipse plugin providing a qvto file and containing an
> action which starts a transformation:
>
> public void run() {
> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
> "/qvto/transformation.qvto", true);
> QvtoTransformationHelper helper = new
> QvtoTransformationHelper(transformationSpecification);
> TransfExecutionResult result =
> transformationHelper.executeTransformation(getInModels(),
> Collections.<String, Object> emptyMap(), null);
> saveOutModels(result);
> }
>
> The strange thing is that it totally works if I start a runtime
> workbench and perform the action _for the first time_. The out models
> are saved as expected.
> But if I perform the action again, it does not work any more! The
> following exception raises. If I restart the runtime workbench, however,
> it works again for one time!
>
> org.eclipse.core.runtime.CoreException: Failed to parse transformation
> 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
> at
> org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
>
> at
> myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
>
>
> Any ideas??
>
>
> By the way, the validator below does not work at all and claims that the
> resource does not exist, because it only checks the workspace for the
> given uri.
> QvtoTransformationValidator.validateQvtoScript(uri, null, null)
>
>
> Cheers
> Patrick
|
|
|
Re: [QVTO] Calling transformation programmatically [message #101713 is a reply to message #101676] |
Thu, 12 March 2009 21:40 |
Sergey Boyko Messages: 171 Registered: July 2009 |
Senior Member |
|
|
Hi Patrick,
I can't reproduce problem you mentioned. Could you please attach script
by which the bug is reproduced.
As for deployed modules validation with QvtoTransformationValidator -
it's definitely a bug. I've filed it as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=268441.
Regards,
Sergey
Patrick Könemann wrote:
> Oups, variables were named wrong:
>
> public void run() {
> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
> "/qvto/transformation.qvto", true);
> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
> TransfExecutionResult result =
> helper.executeTransformation(getInModels(), Collections.<String, Object>
> emptyMap(), null);
> saveOutModels(result);
> }
>
> On 12-03-2009 16:53, Patrick Könemann wrote:
>> Hi all,
>>
>> I encountered a strange bug, I think. My setting:
>>
>> I created an Eclipse plugin providing a qvto file and containing an
>> action which starts a transformation:
>>
>> public void run() {
>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>> "/qvto/transformation.qvto", true);
>> QvtoTransformationHelper helper = new
>> QvtoTransformationHelper(transformationSpecification);
>> TransfExecutionResult result =
>> transformationHelper.executeTransformation(getInModels(),
>> Collections.<String, Object> emptyMap(), null);
>> saveOutModels(result);
>> }
>>
>> The strange thing is that it totally works if I start a runtime
>> workbench and perform the action _for the first time_. The out models
>> are saved as expected.
>> But if I perform the action again, it does not work any more! The
>> following exception raises. If I restart the runtime workbench, however,
>> it works again for one time!
>>
>> org.eclipse.core.runtime.CoreException: Failed to parse transformation
>> 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
>> at
>> org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
>>
>>
>> at
>> myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
>>
>>
>>
>> Any ideas??
>>
>>
>> By the way, the validator below does not work at all and claims that the
>> resource does not exist, because it only checks the workspace for the
>> given uri.
>> QvtoTransformationValidator.validateQvtoScript(uri, null, null)
>>
>>
>> Cheers
>> Patrick
>
|
|
| |
Re: [QVTO] Calling transformation programmatically [message #101796 is a reply to message #101760] |
Fri, 13 March 2009 19:37 |
Sergey Boyko Messages: 171 Registered: July 2009 |
Senior Member |
|
|
Hi Patrick,
Thank you very much for the example project! For me it reproduces bug
even for the first launch.
The problem is that deployed module cannot resolve black-box imports. So
another bug has been submitted
https://bugs.eclipse.org/bugs/show_bug.cgi?id=268596
Both mentioned bugs will be fixed shortly and be available in the next
I-build.
Regards,
Sergey
Patrick Könemann wrote:
> Hi Sergey,
>
> thanks for the reply.
> What I did not mention before: I use a blackbox library for some more
> complex operations, which seems to be the cause of the exception. After
> the first (successful) transformation, it contains compilation errors?!?
> Thus I can perform the transformation exactly once.
>
> Example project attached (running on Eclipse 3.5M5):
> - import existing projects into workspace -> select TransformationOnce.zip
> - launch runtime workbench
> - select in the menu bar: Transformation Menu -> Start transformation
> - check the console output in the main workbench (successful
> transformation)
> - Start the transformation again
> - check the console output again: CoreException
>
> Any help appreciated.
>
> Cheers
> Patrick
>
>
> On 12-03-2009 22:40, Sergey Boyko wrote:
>> Hi Patrick,
>>
>> I can't reproduce problem you mentioned. Could you please attach script
>> by which the bug is reproduced.
>>
>> As for deployed modules validation with QvtoTransformationValidator -
>> it's definitely a bug. I've filed it as
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268441.
>>
>> Regards,
>> Sergey
>>
>> Patrick Könemann wrote:
>>> Oups, variables were named wrong:
>>>
>>> public void run() {
>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>> "/qvto/transformation.qvto", true);
>>> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
>>> TransfExecutionResult result =
>>> helper.executeTransformation(getInModels(), Collections.<String,
>>> Object> emptyMap(), null);
>>> saveOutModels(result);
>>> }
>>>
>>> On 12-03-2009 16:53, Patrick Könemann wrote:
>>>> Hi all,
>>>>
>>>> I encountered a strange bug, I think. My setting:
>>>>
>>>> I created an Eclipse plugin providing a qvto file and containing an
>>>> action which starts a transformation:
>>>>
>>>> public void run() {
>>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>>> "/qvto/transformation.qvto", true);
>>>> QvtoTransformationHelper helper = new
>>>> QvtoTransformationHelper(transformationSpecification);
>>>> TransfExecutionResult result =
>>>> transformationHelper.executeTransformation(getInModels(),
>>>> Collections.<String, Object> emptyMap(), null);
>>>> saveOutModels(result);
>>>> }
>>>>
>>>> The strange thing is that it totally works if I start a runtime
>>>> workbench and perform the action _for the first time_. The out models
>>>> are saved as expected.
>>>> But if I perform the action again, it does not work any more! The
>>>> following exception raises. If I restart the runtime workbench,
>>>> however,
>>>> it works again for one time!
>>>>
>>>> org.eclipse.core.runtime.CoreException: Failed to parse transformation
>>>> 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
>>>> at
>>>> org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
>>>>
>>>>
>>>>
>>>> at
>>>> myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
>>>>
>>>>
>>>>
>>>>
>>>> Any ideas??
>>>>
>>>>
>>>> By the way, the validator below does not work at all and claims that
>>>> the
>>>> resource does not exist, because it only checks the workspace for the
>>>> given uri.
>>>> QvtoTransformationValidator.validateQvtoScript(uri, null, null)
>>>>
>>>>
>>>> Cheers
>>>> Patrick
>>>
>
|
|
|
Re: [QVTO] Calling transformation programmatically [message #101808 is a reply to message #101796] |
Fri, 13 March 2009 21:37 |
Sergey Boyko Messages: 171 Registered: July 2009 |
Senior Member |
|
|
Hi Patric,
Some minor addition :) In the script I found the following
mapping MyElement::toSomething() : MyElement {
name = self.name;
result.toBlackboxed()
}
Expression 'name = self.name;' is not an assignment that's in fact
conditional expression resulted in boolean value. Assignment is realized
with ":=" lexeme.
Regards,
Sergey.
Sergey Boyko wrote:
> Hi Patrick,
>
> Thank you very much for the example project! For me it reproduces bug
> even for the first launch.
> The problem is that deployed module cannot resolve black-box imports. So
> another bug has been submitted
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268596
>
> Both mentioned bugs will be fixed shortly and be available in the next
> I-build.
>
> Regards,
> Sergey
>
> Patrick Könemann wrote:
>> Hi Sergey,
>>
>> thanks for the reply.
>> What I did not mention before: I use a blackbox library for some more
>> complex operations, which seems to be the cause of the exception.
>> After the first (successful) transformation, it contains compilation
>> errors?!?
>> Thus I can perform the transformation exactly once.
>>
>> Example project attached (running on Eclipse 3.5M5):
>> - import existing projects into workspace -> select
>> TransformationOnce.zip
>> - launch runtime workbench
>> - select in the menu bar: Transformation Menu -> Start transformation
>> - check the console output in the main workbench (successful
>> transformation)
>> - Start the transformation again
>> - check the console output again: CoreException
>>
>> Any help appreciated.
>>
>> Cheers
>> Patrick
>>
>>
>> On 12-03-2009 22:40, Sergey Boyko wrote:
>>> Hi Patrick,
>>>
>>> I can't reproduce problem you mentioned. Could you please attach script
>>> by which the bug is reproduced.
>>>
>>> As for deployed modules validation with QvtoTransformationValidator -
>>> it's definitely a bug. I've filed it as
>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268441.
>>>
>>> Regards,
>>> Sergey
>>>
>>> Patrick Könemann wrote:
>>>> Oups, variables were named wrong:
>>>>
>>>> public void run() {
>>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>>> "/qvto/transformation.qvto", true);
>>>> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
>>>> TransfExecutionResult result =
>>>> helper.executeTransformation(getInModels(), Collections.<String,
>>>> Object> emptyMap(), null);
>>>> saveOutModels(result);
>>>> }
>>>>
>>>> On 12-03-2009 16:53, Patrick Könemann wrote:
>>>>> Hi all,
>>>>>
>>>>> I encountered a strange bug, I think. My setting:
>>>>>
>>>>> I created an Eclipse plugin providing a qvto file and containing an
>>>>> action which starts a transformation:
>>>>>
>>>>> public void run() {
>>>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>>>> "/qvto/transformation.qvto", true);
>>>>> QvtoTransformationHelper helper = new
>>>>> QvtoTransformationHelper(transformationSpecification);
>>>>> TransfExecutionResult result =
>>>>> transformationHelper.executeTransformation(getInModels(),
>>>>> Collections.<String, Object> emptyMap(), null);
>>>>> saveOutModels(result);
>>>>> }
>>>>>
>>>>> The strange thing is that it totally works if I start a runtime
>>>>> workbench and perform the action _for the first time_. The out models
>>>>> are saved as expected.
>>>>> But if I perform the action again, it does not work any more! The
>>>>> following exception raises. If I restart the runtime workbench,
>>>>> however,
>>>>> it works again for one time!
>>>>>
>>>>> org.eclipse.core.runtime.CoreException: Failed to parse transformation
>>>>> 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
>>>>> at
>>>>> org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
>>>>>
>>>>>
>>>>>
>>>>> at
>>>>> myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Any ideas??
>>>>>
>>>>>
>>>>> By the way, the validator below does not work at all and claims
>>>>> that the
>>>>> resource does not exist, because it only checks the workspace for the
>>>>> given uri.
>>>>> QvtoTransformationValidator.validateQvtoScript(uri, null, null)
>>>>>
>>>>>
>>>>> Cheers
>>>>> Patrick
>>>>
>>
|
|
|
Re: [QVTO] Calling transformation programmatically [message #101879 is a reply to message #101808] |
Mon, 16 March 2009 10:44 |
Patrick Konemann Messages: 116 Registered: July 2009 |
Senior Member |
|
|
Hi Sergey,
you're right ;-)
in fact, I didn't even recognize this typo since I created the project just for you (and the newsgroup of course).
thanks for taking care of the bug
Patrick
On 13-03-2009 22:37, Sergey Boyko wrote:
> Hi Patric,
>
> Some minor addition :) In the script I found the following
>
> mapping MyElement::toSomething() : MyElement {
> name = self.name;
> result.toBlackboxed()
> }
>
> Expression 'name = self.name;' is not an assignment that's in fact
> conditional expression resulted in boolean value. Assignment is realized
> with ":=" lexeme.
>
> Regards,
> Sergey.
>
>
> Sergey Boyko wrote:
>> Hi Patrick,
>>
>> Thank you very much for the example project! For me it reproduces bug
>> even for the first launch.
>> The problem is that deployed module cannot resolve black-box imports.
>> So another bug has been submitted
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268596
>>
>> Both mentioned bugs will be fixed shortly and be available in the next
>> I-build.
>>
>> Regards,
>> Sergey
>>
>> Patrick Könemann wrote:
>>> Hi Sergey,
>>>
>>> thanks for the reply.
>>> What I did not mention before: I use a blackbox library for some more
>>> complex operations, which seems to be the cause of the exception.
>>> After the first (successful) transformation, it contains compilation
>>> errors?!?
>>> Thus I can perform the transformation exactly once.
>>>
>>> Example project attached (running on Eclipse 3.5M5):
>>> - import existing projects into workspace -> select
>>> TransformationOnce.zip
>>> - launch runtime workbench
>>> - select in the menu bar: Transformation Menu -> Start transformation
>>> - check the console output in the main workbench (successful
>>> transformation)
>>> - Start the transformation again
>>> - check the console output again: CoreException
>>>
>>> Any help appreciated.
>>>
>>> Cheers
>>> Patrick
>>>
>>>
>>> On 12-03-2009 22:40, Sergey Boyko wrote:
>>>> Hi Patrick,
>>>>
>>>> I can't reproduce problem you mentioned. Could you please attach script
>>>> by which the bug is reproduced.
>>>>
>>>> As for deployed modules validation with QvtoTransformationValidator -
>>>> it's definitely a bug. I've filed it as
>>>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=268441.
>>>>
>>>> Regards,
>>>> Sergey
>>>>
>>>> Patrick Könemann wrote:
>>>>> Oups, variables were named wrong:
>>>>>
>>>>> public void run() {
>>>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>>>> "/qvto/transformation.qvto", true);
>>>>> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
>>>>> TransfExecutionResult result =
>>>>> helper.executeTransformation(getInModels(), Collections.<String,
>>>>> Object> emptyMap(), null);
>>>>> saveOutModels(result);
>>>>> }
>>>>>
>>>>> On 12-03-2009 16:53, Patrick Könemann wrote:
>>>>>> Hi all,
>>>>>>
>>>>>> I encountered a strange bug, I think. My setting:
>>>>>>
>>>>>> I created an Eclipse plugin providing a qvto file and containing an
>>>>>> action which starts a transformation:
>>>>>>
>>>>>> public void run() {
>>>>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>>>>> "/qvto/transformation.qvto", true);
>>>>>> QvtoTransformationHelper helper = new
>>>>>> QvtoTransformationHelper(transformationSpecification);
>>>>>> TransfExecutionResult result =
>>>>>> transformationHelper.executeTransformation(getInModels(),
>>>>>> Collections.<String, Object> emptyMap(), null);
>>>>>> saveOutModels(result);
>>>>>> }
>>>>>>
>>>>>> The strange thing is that it totally works if I start a runtime
>>>>>> workbench and perform the action _for the first time_. The out models
>>>>>> are saved as expected.
>>>>>> But if I perform the action again, it does not work any more! The
>>>>>> following exception raises. If I restart the runtime workbench,
>>>>>> however,
>>>>>> it works again for one time!
>>>>>>
>>>>>> org.eclipse.core.runtime.CoreException: Failed to parse
>>>>>> transformation
>>>>>> 'deployed://myplugin/qvto/transformation.qvto', 1 error(s) found.
>>>>>> at
>>>>>> org.eclipse.m2m.qvt.oml.runtime.util.QvtoTransformationHelpe r.executeTransformation(QvtoTransformationHelper.java:192)
>>>>>>
>>>>>>
>>>>>>
>>>>>> at
>>>>>> myplugin.util.TransformationLauncher.transform(Transformatio nLauncher.java:64)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Any ideas??
>>>>>>
>>>>>>
>>>>>> By the way, the validator below does not work at all and claims
>>>>>> that the
>>>>>> resource does not exist, because it only checks the workspace for the
>>>>>> given uri.
>>>>>> QvtoTransformationValidator.validateQvtoScript(uri, null, null)
>>>>>>
>>>>>>
>>>>>> Cheers
>>>>>> Patrick
>>>>>
>>>
|
|
|
Re: [QVTO] Calling transformation programmatically [message #101947 is a reply to message #101676] |
Mon, 16 March 2009 14:01 |
Patrick Konemann Messages: 116 Registered: July 2009 |
Senior Member |
|
|
Dear developers,
this is not a bug, rather about a minor API change.
In order to start the transformation, the input must be of type List<EObject>:
public TransfExecutionResult executeTransformation(final List<EObject> inObjects, final Map<String, Object> inConfigProperties, ResourceSet metamodelResourceSet) throws CoreException {
So I explicitely need to convert my input from EList<MyElement> to List<EObject>, e.g. in getInModels() in the example below.
This cast would not be required if the type of the input parameter above is changed to: List<? extends EObject>
What do you think?
Best regards
Patrick
On 12-03-2009 16:57, Patrick Könemann wrote:
> Oups, variables were named wrong:
>
> public void run() {
> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
> "/qvto/transformation.qvto", true);
> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
> TransfExecutionResult result =
> helper.executeTransformation(getInModels(), Collections.<String, Object>
> emptyMap(), null);
> saveOutModels(result);
> }
>
|
|
|
Re: [QVTO] Calling transformation programmatically [message #102257 is a reply to message #101947] |
Mon, 23 March 2009 23:44 |
Sergey Boyko Messages: 171 Registered: July 2009 |
Senior Member |
|
|
Hi Patrick,
Excuse me for the late answering. I missed the message in thread.
You're right, executeTransformation(..) declaration will be changed like
that. It's even not an API breaking change ;)
I'll apply changes soon.
Regards,
Sergey
Patrick Könemann wrote:
> Dear developers,
>
> this is not a bug, rather about a minor API change.
> In order to start the transformation, the input must be of type
> List<EObject>:
>
> public TransfExecutionResult executeTransformation(final
> List<EObject> inObjects, final Map<String, Object> inConfigProperties,
> ResourceSet metamodelResourceSet) throws CoreException {
>
> So I explicitely need to convert my input from EList<MyElement> to
> List<EObject>, e.g. in getInModels() in the example below.
> This cast would not be required if the type of the input parameter above
> is changed to: List<? extends EObject>
> What do you think?
>
> Best regards
> Patrick
>
>
> On 12-03-2009 16:57, Patrick Könemann wrote:
>> Oups, variables were named wrong:
>>
>> public void run() {
>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>> "/qvto/transformation.qvto", true);
>> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
>> TransfExecutionResult result =
>> helper.executeTransformation(getInModels(), Collections.<String, Object>
>> emptyMap(), null);
>> saveOutModels(result);
>> }
>>
>
|
|
|
Re: [QVTO] Calling transformation programmatically [message #108674 is a reply to message #102257] |
Sat, 25 July 2009 11:31 |
Eclipse User |
|
|
|
Originally posted by: liaoqiancheng.cjitec.com
Sergey Boyko 写道:
> Hi Patrick,
>
> Excuse me for the late answering. I missed the message in thread.
>
> You're right, executeTransformation(..) declaration will be changed like
> that. It's even not an API breaking change ;)
> I'll apply changes soon.
>
> Regards,
> Sergey
>
>
> Patrick Könemann wrote:
>> Dear developers,
>>
>> this is not a bug, rather about a minor API change.
>> In order to start the transformation, the input must be of type
>> List<EObject>:
>>
>> public TransfExecutionResult executeTransformation(final
>> List<EObject> inObjects, final Map<String, Object> inConfigProperties,
>> ResourceSet metamodelResourceSet) throws CoreException {
>>
>> So I explicitely need to convert my input from EList<MyElement> to
>> List<EObject>, e.g. in getInModels() in the example below.
>> This cast would not be required if the type of the input parameter
>> above is changed to: List<? extends EObject>
>> What do you think?
>>
>> Best regards
>> Patrick
>>
>>
>> On 12-03-2009 16:57, Patrick Könemann wrote:
>>> Oups, variables were named wrong:
>>>
>>> public void run() {
>>> URI uri = URI.createPlatformPluginURI(Activator.PLUGIN_ID +
>>> "/qvto/transformation.qvto", true);
>>> QvtoTransformationHelper helper = new QvtoTransformationHelper(uri);
>>> TransfExecutionResult result =
>>> helper.executeTransformation(getInModels(), Collections.<String, Object>
>>> emptyMap(), null);
>>> saveOutModels(result);
>>> }
>>>
>>
Hi guys,
Thank you very much;-)
Especially for the example project!
|
|
| | | |
Goto Forum:
Current Time: Thu Dec 26 12:37:03 GMT 2024
Powered by FUDForum. Page generated in 0.05501 seconds
|