Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Run xtext workflow from another plugin project
Run xtext workflow from another plugin project [message #989897] Sun, 09 December 2012 11:53 Go to previous message
Adnan AL-SOSWA is currently offline Adnan AL-SOSWA
Messages: 21
Registered: May 2010
Junior Member
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Custom error message for unordered groups
Next Topic:Unit Test - type is 'null'
Goto Forum:
  


Current Time: Wed May 22 04:02:06 EDT 2013

Powered by FUDForum. Page generated in 0.08530 seconds