Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLanguage A accessing B language during code generation
https://www.eclipse.org/forums/index.php/mv/msg/1093473/1787591/#msg_1787591
I have two Eclipse xtext languages, project A and project B, each one with a grammar.
Language B is a code generation complement for language A.
Language A starts the code generation and it must call some methods in language B to help the work (I do Eclipse Extension Points to solve this). After, language B starts its code generation, based on elements defined in language A.
All works fine when the two plug-ins are executed in Eclipse IDE.
But it fails when running in continuous integration with Maven because Maven cannot access the extension points and so some files aren't generated as in Eclipse IDE.
Some hint about the right way for how language A can access language B during the code generation?
Some hint about how language A can access language B during the code generation without Eclipse extension points? Or there is another way to achieve this?
Thanks,
Márcio Koch.]]>Márcio Koch2018-05-29T18:30:17-00:00Re: Language A accessing B language during code generation
https://www.eclipse.org/forums/index.php/mv/msg/1093473/1787592/#msg_1787592
Christian Dietrich2018-05-29T18:47:38-00:00Re: Language A accessing B language during code generation
https://www.eclipse.org/forums/index.php/mv/msg/1093473/1787596/#msg_1787596
The language A declares an interface (and an Eclipse extension point) that language B implements.
Language B knows A language by a referencedResource, but language A does not know B language.]]>Márcio Koch2018-05-29T19:13:34-00:00Re: Language A accessing B language during code generation
https://www.eclipse.org/forums/index.php/mv/msg/1093473/1787597/#msg_1787597
@Inject
IGlobalServiceProvider gsp;
public void doSomething() {
gsp.findService(URI.createURI("dummy.b"), ServiceClazz.class)...
}