hello all ,
I searched about how i can run xtext workflow from another plugin project but I did not find a complete explanation for the process
I have the grammar.xtext file and the workflow file (generator.mwe2) and I created a class to run the generator programmatically using this code
Injector inj = new Mwe2StandaloneSetup().createInjectorAndDoEMFRegistration();
Mwe2Runner runner = inj.getInstance(Mwe2Runner.class);
runner.run("org.eclipse.xtext.example.tutorial.GenerateTutorial", new HashMap<String, String>());
this code work fine from within xtext Project , but does not from another plugin or java project .
any help or reference to website to read about
thanks in advance
adnan