Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO] SimpleUML to RDB Example
[QVTO] SimpleUML to RDB Example [message #94205] Fri, 31 October 2008 12:22 Go to next message
Alexander  is currently offline Alexander Friend
Messages: 23
Registered: July 2009
Junior Member
Hi all,

I am looking into QVTO, and try to run the example that comes with it.
Running it using the launch file works without a problem. When I try to
run it as a plugin using Launch as eclipse application, the
transformation shows up in "Run transformation", but selecting the
sample gives the following error:

Cannot find imported module
'/org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb.Simpleuml_To _Rdb'

Is there something I am doing wrong?

TiA

Alexander
Re: [QVTO] SimpleUML to RDB Example [message #94239 is a reply to message #94205] Fri, 31 October 2008 14:20 Go to previous messageGo to next message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Alexander,

There's actually a bug in transformation's deployment configuration in
SimpleUML to RDB/plugin.xml.

To fix it manually try to substitute (in plugin.xml file) line
id="SimpleUML toRDB.Simpleuml_To_Rdb">
with
id="Simpleuml_To_Rdb">

This should help.

Wbr,
Sergey.


Alexander Broekhuis wrote:
> Hi all,
>
> I am looking into QVTO, and try to run the example that comes with it.
> Running it using the launch file works without a problem. When I try to
> run it as a plugin using Launch as eclipse application, the
> transformation shows up in "Run transformation", but selecting the
> sample gives the following error:
>
> Cannot find imported module
> '/org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb.Simpleuml_To _Rdb'
>
> Is there something I am doing wrong?
>
> TiA
>
> Alexander
Re: [QVTO] SimpleUML to RDB Example [message #94324 is a reply to message #94239] Sun, 02 November 2008 10:19 Go to previous messageGo to next message
Alexander  is currently offline Alexander Friend
Messages: 23
Registered: July 2009
Junior Member
Sergey,

Thx for the answer, changing the id works. But is has to be
org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb. I guess the id must be
the same as the symbolic name?

While it now doesn't give the "cannot find" error, it now complains
about "String index out of range: -1"

BTW, I am running on mac OS X 10.5.5 using the Eclipse Modeling 3.4.1
distro.

Ps: is there some documentation about the configuration options, but
also about QVTO in general?

TiA!

Sergey Boyko wrote:
> Hi Alexander,
>
> There's actually a bug in transformation's deployment configuration in
> SimpleUML to RDB/plugin.xml.
>
> To fix it manually try to substitute (in plugin.xml file) line
> id="SimpleUML toRDB.Simpleuml_To_Rdb">
> with
> id="Simpleuml_To_Rdb">
>
> This should help.
>
> Wbr,
> Sergey.
>
>
> Alexander Broekhuis wrote:
>> Hi all,
>>
>> I am looking into QVTO, and try to run the example that comes with it.
>> Running it using the launch file works without a problem. When I try
>> to run it as a plugin using Launch as eclipse application, the
>> transformation shows up in "Run transformation", but selecting the
>> sample gives the following error:
>>
>> Cannot find imported module
>> '/org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb.Simpleuml_To _Rdb'
>>
>> Is there something I am doing wrong?
>>
>> TiA
>>

>> Alexander
Re: [QVTO] SimpleUML to RDB Example [message #94618 is a reply to message #94324] Wed, 05 November 2008 16:42 Go to previous message
Sergey Boyko is currently offline Sergey BoykoFriend
Messages: 171
Registered: July 2009
Senior Member
Hi Alexander,

Transformation id for the "SimpleUML to RDB Transformation Project" must
be exactly as I wrote (i.e. id="Simpleuml_To_Rdb").

To be sure we're talking about same things below is what I tried:

1. Development Configuration
- Eclipse 3.4.1
- QVTO 1.0.1 (from there
http://www.eclipse.org/modeling/download.php?file=/modeling/ m2m/qvtoml/downloads/drops/1.0.1/R200809171308/m2m-qvtoml-SD K-1.0.1.zip)
- Dependencies (EMF, OCL, UML2) listed here
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=qvtoml

2. Create new project from Examples/Operational QVT
Transformation/SimpleUML to RDB Transformation Project in it

3. Launch new Eclipse Application from here

4. On the appropriate target (My.uml model) launch Run/Transformation...
action, select "Platform/Simpleuml_To_Rdb" transformation

Upon launching transformation executes without errors.


Available documentation listed in our Eclipse corner
(http://www.eclipse.org/m2m/).

Wbr,
Sergey


Alexander Broekhuis wrote:
> Sergey,
>
> Thx for the answer, changing the id works. But is has to be
> org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb. I guess the id must be
> the same as the symbolic name?
>
> While it now doesn't give the "cannot find" error, it now complains
> about "String index out of range: -1"
>
> BTW, I am running on mac OS X 10.5.5 using the Eclipse Modeling 3.4.1
> distro.
>
> Ps: is there some documentation about the configuration options, but
> also about QVTO in general?
>
> TiA!
>
> Sergey Boyko wrote:
>> Hi Alexander,
>>
>> There's actually a bug in transformation's deployment configuration in
>> SimpleUML to RDB/plugin.xml.
>>
>> To fix it manually try to substitute (in plugin.xml file) line
>> id="SimpleUML toRDB.Simpleuml_To_Rdb">
>> with
>> id="Simpleuml_To_Rdb">
>>
>> This should help.
>>
>> Wbr,
>> Sergey.
>>
>>
>> Alexander Broekhuis wrote:
>>> Hi all,
>>>
>>> I am looking into QVTO, and try to run the example that comes with it.
>>> Running it using the launch file works without a problem. When I try
>>> to run it as a plugin using Launch as eclipse application, the
>>> transformation shows up in "Run transformation", but selecting the
>>> sample gives the following error:
>>>
>>> Cannot find imported module
>>> '/org.eclipse.m2m.qvt.oml.samples.simpleuml2rdb.Simpleuml_To _Rdb'
>>>
>>> Is there something I am doing wrong?
>>>
>>> TiA
>>>
>
>>> Alexander
>
Previous Topic:[QVTO] Programmatically launch an QVTO transformation
Next Topic:[ATL] 1:M transformations
Goto Forum:
  


Current Time: Thu Apr 18 12:05:38 GMT 2024

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

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

Back to the top