Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 308200 - Problem with ATL parser inject method
Summary: Problem with ATL parser inject method
Status: CLOSED FIXED
Alias: None
Product: MMT.ATL
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: mmt-atl.toolkit-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-06 09:34 EDT by Guillaume Doux CLA
Modified: 2017-06-05 09:23 EDT (History)
2 users (show)

See Also:
william.piers: iplog+


Attachments
Patch for the ATL parser correction (1.17 KB, patch)
2010-04-06 09:35 EDT, Guillaume Doux CLA
william.piers: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Doux CLA 2010-04-06 09:34:44 EDT
Hello,

The ATL injector was not working properly when calling it by Java code.
The injection seams to work but some elements are not created correctly. There is problem with the lookup mechanism because in the injection the target model is not "setIsTarget = true" and the optimized allInstances() did not find all the elements.

The problem is solved by adding "targetModel.setIsTarget(true);" after the creation of the target model and "targetModel.setIsTarget(false);" after the injection.

The patch correcting this problem is attached.

B.R.

Guillaume Doux.
Comment 1 Guillaume Doux CLA 2010-04-06 09:35:39 EDT
Created attachment 163889 [details]
Patch for the ATL parser correction
Comment 2 William Piers CLA 2010-04-06 10:26:04 EDT
Hello,

Your patch has been commited on CVS HEAD. Thanks a lot!
Comment 3 Dennis Wagelaar CLA 2017-06-05 09:23:31 EDT
This was released for ATL 3.1 or earlier - closing.