[ATL] running ATL in RCP [message #85054] |
Tue, 24 June 2008 11:03 |
Eclipse User |
|
|
|
Originally posted by: mjakubowski84.gmail.com
Hi, all!
I am building RCP application which performs ATL transformations. I
already succeeded to run them properly in ant file, and in RCP run from
Eclipse IDE. Problem occurs when I run transformation in separate RCP
product. Then, result of OclQuery, which normally should be a sequence, is
null. Below is code of query.
Map<String, Object> queryModels = new HashMap<String, Object>();
queryModels.put("MDL", mdlMetamodel);
queryModels.put("IN", mdlInputModel);
String query =
"MDL!Object.allInstances()->select(e|e.type='ClassDiagram')- >"
+
"iterate(e;acc:Sequence(String)=Sequence{}|acc->append(e.properties- >any(e|e.name='quid').value.value))";
ASMSequence cls = (ASMSequence)OclQuery.eval(query, queryModels);
mdlInputModel is a result of ebnf injection performed before query. It
seems that the injection and the resulting model is OK.
RCP product is working on the same set of plug-ins as the one run under
Eclipse.
Anybody has idea what can be the cause of this problem?
Thanks in advance,
Martin Jakubowski
|
|
|
Powered by
FUDForum. Page generated in 0.02812 seconds