Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Error when executing transformation from Java.
[QVTo] Error when executing transformation from Java. [message #554312] Sat, 21 August 2010 11:51
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 937
Registered: July 2009
Senior Member
Hi,


I am trying to run a transformation from an RCP app. (Yes, QVTO is nice
to import from i.e. MS-Excel).

I follow the instructions here:

http://wiki.eclipse.org/QVTOML/Examples/InvokeInJava


However the execution fails with the following error:

Could not find unit
'platform:/resource/NetXStudio/transforms/XLS2NETXSTUDIO.qvt o'


The referred resource does exist, but still the execution fails.


I have debugged a bit more and the following code in UnitResolverFactory
seems not to find some factories:

public UnitResolverFactory getFactory(Object source) {
for (UnitResolverFactory nextFactory : fFactories) {
if(nextFactory.isAccepted(source)) {
return nextFactory;
}
}
return null;
}


Here fFactories is empty.

Could it be I need to provide some EPackages as this is an RCP?
(Although, I do register my EMF models ).

Thanks Christophe
Previous Topic:[ATL] Refining with different input and output model (extension)
Next Topic:[QVTo] How to use generics defined in EMF Model
Goto Forum:
  


Current Time: Thu Oct 23 00:41:44 GMT 2014

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

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