I'm building a DSL using Xtext and I would like when a user writes a statement like that:
import "someFile.txt"
to be able to validate and check if that file already exists. If the import is defined like above, then the file should be in the same project as the DSL program that the user is writing. But he should also be able to specify absolute paths.
The problem is that I cannot find a way to access the filesystem in the validator! I saw a lot of people talking about ResourcesPlugin but I don't have access to it from the base project generated by Xtext (I cannot only access it in the ui generated project but the validator exists in the base project).
How can I do that?