'How can I process all the DSL files when generating my code inside the doGenerate method in xtend file of my xtext project?

I have created a DSL using Xtext. Now I am generating code using the doGenerate method of the generator.xtend file. However, my DSL project in the test eclipse instance may have multiple files, and when accessing the data, I get only the transformation of the elements inside the file that is modified at last. I think that is happening because of the scope of the elements in other files.

Is there a way to process all the data of the project at once?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source