|
|
|
|
Re: Clean problem for DSLs in Xtext [message #1386528 is a reply to message #1386408] |
Wed, 18 June 2014 02:41   |
Eclipse User |
|
|
|
Hi Christian,
Thanks for your reply. As I said, I am expanding objects in all the three models.
A simple example would be :
array{placeholder=x name=arr max=2}
M1obj_x[arr]
So in in generator 1 and generator 2 these objects would become M1obj_1 and M1obj_2.
If max=3 then it would become M1obj_1, M1obj_2 and M1obj_3. (Obviously objects are different in all the models, its the generic explanation of what I do).
This is for generator 1 and generator 2. Some outputs are generated out of generaor1 and generator 2.
But in the third resource i.e. .model3 I refer objects from .model1 and .model2 in the raw form
i.e.
....
refers M1obj_x[arr1] (from .model1)
refers M2obj_x[arr2] (from .model2)
....
So in generator 3, first I call generator 1 and generator 2 functionality to expand objects and use combination of these objects to produce some output.
When I edit and save the file, everything works fine.
BUT WHEN I CLEAN THE WHOLE PROJECT, THE REFERRED OBJECTS ARE ALREADY EXPANDED (BEFORE I CALL GENERATOR 1 AND GENERATOR 2 FUNCTIONALITY). HENCE I AM NOT GETTING THE DESIRED RESULT OUT OF GENERATOR 3.
Regards,
Arshad
[Updated on: Wed, 18 June 2014 02:42] by Moderator
|
|
|
|
Re: Clean problem for DSLs in Xtext [message #1386558 is a reply to message #1386535] |
Wed, 18 June 2014 05:19  |
Eclipse User |
|
|
|
Hi Arshad,
One solution for the problem is, to store the unexpanded values to a map before generator 1 gets called, and restore it again for generator 2 to expand it.
But there can be better solution for the problem.
Best regards,
Virag Purnam
|
|
|
Powered by
FUDForum. Page generated in 0.09649 seconds