Clean problem for DSLs in Xtext [message #1386368] |
Tue, 17 June 2014 07:32 |
|
HI,
I have three dsl files .model1, .model2 and .model3.
So I will be having 3 generators here, one for each dsl.
But .model3 file refers data from .model1 and .model2.
Work flow of .model3 generator is, first .model1 data will be modified and then .model2 data will be modified and this data will be used to generate output in .model3 generator.
But when I clean my complete project, .model1 generator will be called and .model2 and then .model3.
But data is already modified in first 2 generators and it tells me that referred object in .model3 is not there (null) as its already modified.
Is there a way that before calling the .model3 generator I load the raw file data of .model1 and .model2 ?
This problems only occurs during clean ...
Regards,
Arshad
Arshad
|
|
|
|
|
|
Re: Clean problem for DSLs in Xtext [message #1386528 is a reply to message #1386408] |
Wed, 18 June 2014 06:41 |
|
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
Arshad
[Updated on: Wed, 18 June 2014 06:42] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03973 seconds