I want to trigger the doGenerate(Resource resource, IFileSystemAccess fsa)
programmatically (Xtext-file) from a different project (graphiti-project).
The project is in the very same workspace.
The problem is: I can't get the desired resource and fsa.
My current approach is to simply run the project as below:
IProject project = null;
final IWorkspace workspace = ResourcesPlugin.getWorkspace();
project = workspace.getRoot().getFile(new Path("foo/src/block_stuff.cbctxt")).getProject();
However, this does not work and I wish I could trigger the doGenerate directly.
[Updated on: Fri, 27 August 2021 08:43]
Report message to a moderator